alibaba.cfo.incoming.invoice.ledger.fullysync (票易通全量底账数据同步)

票易通全量底账数据同步

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
param_pyt_ledger_sync_request PytLedgerSyncRequest 可选 底账同步请求
  • └ account_type
  • String
  • 可选
  • AP
  • 账户类型。进项:AP,销项:AR
  • └ amount_with_tax
  • String
  • 可选
  • 1
  • 含税金额
  • └ amount_without_tax
  • String
  • 可选
  • 1
  • 不含税金额
  • └ auth_remark
  • String
  • 可选
  • 123
  • 认证备注
  • └ auth_status
  • String
  • 可选
  • 1
  • 认证状态
  • └ auth_style
  • String
  • 可选
  • 0
  • 认证方式
  • └ auth_tax_period
  • String
  • 可选
  • 202210
  • 认证所属期
  • └ auth_use
  • String
  • 可选
  • 1
  • 抵扣用途
  • └ biz_order_no
  • String
  • 可选
  • 123
  • 业务单号
  • └ buyer_address_tel
  • String
  • 可选
  • 上海1234567890
  • 购方地址电话
  • └ buyer_bank_account
  • String
  • 可选
  • 123456
  • 购方银行账号
  • └ buyer_bank_info
  • String
  • 可选
  • 123456
  • 购方开户行名称 账号
  • └ buyer_bank_name
  • String
  • 可选
  • 中国银行
  • 购方银行名称
  • └ buyer_name
  • String
  • 可选
  • 阿里巴巴
  • 购方名称
  • └ buyer_tax_no
  • String
  • 可选
  • 1234
  • 购方税号
  • └ check_code
  • String
  • 可选
  • 123
  • 校验码
  • └ cipher_text
  • String
  • 可选
  • 123
  • 密文
  • └ cipher_text_q_r_code
  • String
  • 可选
  • 123
  • 二维密文
  • └ date_issued
  • String
  • 可选
  • 2022-10-03 10:00:00
  • 开票日期
  • details
  • PytLedgerInvoiceLineRequest []
  • 可选
  • 发票行信息
  • 发票行信息
  • └ amount_with_tax
  • String
  • 可选
  • 1
  • 含税金额
  • └ amount_without_tax
  • String
  • 可选
  • 1
  • 不含税金额
  • └ deductions
  • String
  • 可选
  • 1
  • 扣除额
  • └ goods_tax_no
  • String
  • 可选
  • 1
  • 税收分类编码
  • └ goods_tax_no_version
  • String
  • 可选
  • 1
  • 编码版本号
  • └ quantity
  • String
  • 可选
  • 1
  • 数量
  • └ specifications
  • String
  • 可选
  • 中型
  • 规格型号
  • └ tax_amount
  • String
  • 可选
  • 1
  • 税额
  • └ tax_pre
  • String
  • 可选
  • 1
  • 是否享受税收优惠政策
  • └ tax_pre_con
  • String
  • 可选
  • 123
  • 享受税收优惠政策内容
  • └ tax_rate
  • String
  • 可选
  • 6
  • 税率
  • └ toll_end_date
  • String
  • 可选
  • 2022-10-01 00:00:00
  • 通行日期止
  • └ toll_start_date
  • String
  • 可选
  • 2022-10-02 00:00:00
  • 通行日期起
  • └ unit
  • String
  • 可选
  • 数量单位
  • └ unit_price
  • String
  • 可选
  • 1
  • 单价
  • └ zero_tax
  • String
  • 可选
  • 1
  • 零税率标志
  • └ item_name
  • String
  • 可选
  • *体育用品*护膝
  • 项目名称
  • └ item_code
  • String
  • 可选
  • 123
  • 项目编码
  • └ effective_tax_amount
  • String
  • 可选
  • 1
  • 有效税额
  • └ el_confirm_date
  • String
  • 可选
  • 2022-10-05 00:00:00
  • 认证业务日期
  • └ el_sync_time
  • String
  • 可选
  • 2022-10-05 14:00:00
  • 底账同步时间
  • └ extended_attrs
  • String
  • 可选
  • {"key":"value"}
  • 扩展属性
  • └ invoice_code
  • String
  • 可选
  • 123
  • 发票代码
  • └ invoice_color
  • String
  • 可选
  • 1
  • 红蓝票标记
  • └ invoice_type
  • String
  • 可选
  • 1
  • 发票类型
  • └ invoice_no
  • String
  • 可选
  • 11223344
  • 发票号码
  • └ invoice_source
  • String
  • 可选
  • 1
  • 国税发票来源
  • └ invoice_style_type
  • String
  • 可选
  • 1
  • 发票样式
  • └ issuer
  • String
  • 可选
  • 张三
  • 开票人
  • └ machine_code
  • String
  • 可选
  • 123
  • 机器编码
  • └ no_auth_reason
  • String
  • 可选
  • 123
  • 不抵扣原因
  • └ original_invoice_code
  • String
  • 可选
  • 123
  • 原始发票代码
  • └ original_invoice_no
  • String
  • 可选
  • 11223344
  • 原始发票号码
  • └ payee
  • String
  • 可选
  • 李四
  • 付款人
  • └ pdf_url
  • String
  • 可选
  • 123
  • PDF文件地址
  • └ remark
  • String
  • 可选
  • 123
  • 备注
  • └ reverse_amount_with_tax
  • String
  • 可选
  • 1
  • 被红冲含税金额
  • └ reverse_amount_without_tax
  • String
  • 可选
  • 1
  • 被红冲不含税金额
  • └ reverse_flag
  • String
  • 可选
  • 1
  • 红冲状态
  • └ reverse_tax_amount
  • String
  • 可选
  • 1
  • 被红冲税额
  • └ reviewer
  • String
  • 可选
  • 王明
  • 审核人
  • └ sale_list_file_flag
  • String
  • 可选
  • true
  • 发是否有销货清单
  • └ seller_address
  • String
  • 可选
  • 上海
  • 销方地址
  • └ seller_address_tel
  • String
  • 可选
  • 上海1234566697
  • 销方地址电话
  • └ seller_bank_account
  • String
  • 可选
  • 123
  • 销方银行账号
  • └ seller_bank_info
  • String
  • 可选
  • 中国银行123
  • 销方开户行名称 账号
  • └ seller_bank_name
  • String
  • 可选
  • 中国银行
  • 销方银行名称
  • └ seller_name
  • String
  • 可选
  • 阿里巴巴
  • 销方名称
  • └ seller_tax_no
  • String
  • 可选
  • 123
  • 销方税号
  • └ seller_tel
  • String
  • 可选
  • 123
  • 销方电话
  • └ source
  • String
  • 可选
  • 1
  • 系统来源
  • └ special_type
  • String
  • 可选
  • 1
  • 发票特殊类型标识
  • └ status
  • String
  • 可选
  • 1
  • 状态
  • └ tax_amount
  • String
  • 可选
  • 1
  • 税额
  • └ tax_invoice_source
  • String
  • 可选
  • 1
  • 国税发票来源
  • └ tax_rate
  • String
  • 可选
  • 6
  • 税率
  • └ send_time
  • Number
  • 必须
  • 1670487816528
  • 发送时间错

响应参数

名称 类型 示例值 描述
result Response 同步是否是否成功
  • └ response_code
  • String
  • 00000
  • 响应码
  • └ response_msg
  • String
  • 成功
  • 响应消息
  • └ succeeded
  • String
  • true
  • 是否成功

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaCfoIncomingInvoiceLedgerFullysyncRequest req = new AlibabaCfoIncomingInvoiceLedgerFullysyncRequest();
AlibabaCfoIncomingInvoiceLedgerFullysyncRequest.PytLedgerSyncRequest obj1 = new AlibabaCfoIncomingInvoiceLedgerFullysyncRequest.PytLedgerSyncRequest();
obj1.setAccountType("AP");
obj1.setAmountWithTax("1");
obj1.setAmountWithoutTax("1");
obj1.setAuthRemark("123");
obj1.setAuthStatus("1");
obj1.setAuthStyle("0");
obj1.setAuthTaxPeriod("202210");
obj1.setAuthUse("1");
obj1.setBizOrderNo("123");
obj1.setBuyerAddressTel("上海1234567890");
obj1.setBuyerBankAccount("123456");
obj1.setBuyerBankInfo("123456");
obj1.setBuyerBankName("中国银行");
obj1.setBuyerName("阿里巴巴");
obj1.setBuyerTaxNo("1234");
obj1.setCheckCode("123");
obj1.setCipherText("123");
obj1.setCipherTextQRCode("123");
obj1.setDateIssued("2022-10-03 10:00:00");
List<AlibabaCfoIncomingInvoiceLedgerFullysyncRequest.PytLedgerInvoiceLineRequest> list3 = new ArrayList<AlibabaCfoIncomingInvoiceLedgerFullysyncRequest.PytLedgerInvoiceLineRequest>();
AlibabaCfoIncomingInvoiceLedgerFullysyncRequest.PytLedgerInvoiceLineRequest obj4 = new AlibabaCfoIncomingInvoiceLedgerFullysyncRequest.PytLedgerInvoiceLineRequest();
list3.add(obj4);
obj4.setAmountWithTax("1");
obj4.setAmountWithoutTax("1");
obj4.setDeductions("1");
obj4.setGoodsTaxNo("1");
obj4.setGoodsTaxNoVersion("1");
obj4.setQuantity("1");
obj4.setSpecifications("中型");
obj4.setTaxAmount("1");
obj4.setTaxPre("1");
obj4.setTaxPreCon("123");
obj4.setTaxRate("6");
obj4.setTollEndDate("2022-10-01 00:00:00");
obj4.setTollStartDate("2022-10-02 00:00:00");
obj4.setUnit("部");
obj4.setUnitPrice("1");
obj4.setZeroTax("1");
obj4.setItemName("*体育用品*护膝");
obj4.setItemCode("123");
obj1.setDetails(list3);
obj1.setEffectiveTaxAmount("1");
obj1.setElConfirmDate("2022-10-05 00:00:00");
obj1.setElSyncTime("2022-10-05 14:00:00");
obj1.setExtendedAttrs("{\"key\":\"value\"}");
obj1.setInvoiceCode("123");
obj1.setInvoiceColor("1");
obj1.setInvoiceType("1");
obj1.setInvoiceNo("11223344");
obj1.setInvoiceSource("1");
obj1.setInvoiceStyleType("1");
obj1.setIssuer("张三");
obj1.setMachineCode("123");
obj1.setNoAuthReason("123");
obj1.setOriginalInvoiceCode("123");
obj1.setOriginalInvoiceNo("11223344");
obj1.setPayee("李四");
obj1.setPdfUrl("123");
obj1.setRemark("123");
obj1.setReverseAmountWithTax("1");
obj1.setReverseAmountWithoutTax("1");
obj1.setReverseFlag("1");
obj1.setReverseTaxAmount("1");
obj1.setReviewer("王明");
obj1.setSaleListFileFlag("true");
obj1.setSellerAddress("上海");
obj1.setSellerAddressTel("上海1234566697");
obj1.setSellerBankAccount("123");
obj1.setSellerBankInfo("中国银行123");
obj1.setSellerBankName("中国银行");
obj1.setSellerName("阿里巴巴");
obj1.setSellerTaxNo("123");
obj1.setSellerTel("123");
obj1.setSource("1");
obj1.setSpecialType("1");
obj1.setStatus("1");
obj1.setTaxAmount("1");
obj1.setTaxInvoiceSource("1");
obj1.setTaxRate("6");
obj1.setSendTime(1670487816528L);
req.setParamPytLedgerSyncRequest(obj1);
AlibabaCfoIncomingInvoiceLedgerFullysyncResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<alibaba_cfo_incoming_invoice_ledger_fullysync_response>
    <result>
        <response_code>00000</response_code>
        <response_msg>成功</response_msg>
        <succeeded>true</succeeded>
    </result>
</alibaba_cfo_incoming_invoice_ledger_fullysync_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

返回
顶部