文档中心 > API类目 > 银泰开放平台(内部)

alibaba.mos.current.bill.query (往来单据查询接口)

往来单据查询接口,海鼎使用

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
query CurrentBillQuery 必须 查询结构体
  • └ relation_no
  • String
  • 可选
  • 1
  • 关联号
  • └ charge_type_id
  • String
  • 可选
  • 1
  • 费用项Id
  • └ supplier_codes
  • String []
  • 可选
  • []
  • 供应商号list
  • └ current_type
  • Number
  • 可选
  • 1
  • 往来类型
  • └ old_no
  • String
  • 可选
  • 1
  • 结算单号
  • └ store_nos
  • String []
  • 可选
  • []
  • 门店号list
  • └ ou_code
  • String
  • 可选
  • I57
  • OU编号
  • └ page_size
  • Number
  • 可选
  • 20
  • 页大小
  • └ supplier_code
  • String
  • 可选
  • 1
  • 供应商号
  • └ business_types
  • Number []
  • 可选
  • []
  • 业务类型list
  • └ funds_status
  • Number []
  • 可选
  • []
  • 资金状态list
  • └ write_off_status
  • Number []
  • 可选
  • 1
  • 核销状态list
  • └ store_no
  • String
  • 可选
  • I57
  • 门店号
  • └ current_types
  • Number []
  • 可选
  • []
  • 往来类型list(支持批量)
  • └ page_no
  • Number
  • 可选
  • 1
  • 页号
  • └ invoice_status
  • Number []
  • 可选
  • 1
  • 税票状态
  • └ contract_code
  • String
  • 可选
  • 1
  • 合同号
  • └ settle_type
  • Number
  • 可选
  • 1
  • 单据类型

响应参数

名称 类型 示例值 描述
current_bill_base_api_d_t_o_multi_result MultiResult {} 出参结构体
  • └ async
  • Boolean
  • false
  • 是否异步
  • └ total
  • Number
  • 1
  • 总数
  • datas
  • Data []
  • []
  • 数据体
  • └ relation_no
  • String
  • 123456789
  • relationNo
  • └ charge_type_name
  • String
  • charge_type_name
  • 费用类型名称
  • └ current_type
  • Number
  • 1
  • 往来类型
  • └ old_no
  • String
  • 23002783441
  • 结算单号
  • └ department_code
  • String
  • department_code
  • 部门编号
  • └ num
  • Number
  • 0.0
  • 数量
  • └ invoice_tax_amount
  • Number
  • -185303
  • 税票税额
  • └ ou_code
  • String
  • I57
  • ou code
  • └ source
  • Number
  • 3
  • 单据来源
  • └ write_off_status
  • Number
  • 3
  • 核销状态
  • └ write_off_amount
  • Number
  • -3221416
  • 已核销金额
  • └ valid_status
  • Number
  • 1
  • 0:无效,1:有效
  • └ invoice_type
  • Number
  • 1
  • 发票类型
  • └ accounting_period
  • Date
  • 1601481600000
  • 所属会计期间
  • └ id
  • Number
  • 120112519401653336
  • id
  • └ invoice_no
  • String
  • 1
  • 税号
  • └ period_end
  • Date
  • 1627531200000
  • 单据周期结束时间
  • └ department_name
  • String
  • department_name
  • 部门名称
  • └ can_payment_amount
  • Number
  • 0
  • 可付款金额
  • └ including_tax_amount
  • Number
  • -1610708
  • 含税金额
  • └ current_no
  • Number
  • 120112519401653336
  • 往来单据号
  • └ bill_date
  • Date
  • 1606233600000
  • 账单日期
  • └ invoice_code
  • String
  • FP2011435189
  • 开票号
  • └ version
  • Number
  • 7
  • 版本号
  • └ tax_rate
  • Number
  • 0.13
  • 税率
  • └ store_no
  • String
  • HZ01
  • 门店号
  • └ source_type
  • Number
  • 0
  • 来源:0系统/1人工
  • └ credit_amount
  • Number
  • -1439659
  • 已付款/收款金额
  • └ tax_amount
  • Number
  • -185303
  • 税额
  • └ period_start
  • Date
  • 1627444800000
  • 单据周期开始时间
  • └ excluding_tax_amount
  • Number
  • -1425405
  • 不含税金额
  • └ charge_type_id
  • String
  • 001
  • 费用类型id
  • └ gmt_modified
  • Date
  • 1627466053000
  • 修改时间
  • └ counter_no
  • String
  • 123456
  • 专柜号
  • └ hang_flag
  • Number
  • 0
  • 是否挂起
  • └ supplier_code
  • String
  • 0002631
  • 供应商号
  • └ funds_status
  • Number
  • 0
  • 资金状态
  • └ invoice_excluding_tax_amount
  • Number
  • -1425405
  • 税票不含税金额
  • └ counter_name
  • String
  • counter_name
  • 专柜名称
  • └ supplier_inside_outside
  • Number
  • 1
  • 内外部供应商 1:内部 2:外部
  • └ store_name
  • String
  • 合肥滨湖店
  • 门店名称
  • └ attribute
  • String
  • {"writeOffDateList":["2020-11-25","2020-11-27","2020-11-28","2020-11-29","2020-11-30","2020-12-01","2020-12-29"],"writeOffIdList":[14539,17245,17253,17259,17306,17328,1320123000301095967],"writeOffTypeList":[2]}
  • 核销详细数据
  • └ pre_pay_date
  • Date
  • 1627444800000
  • 预付款日期
  • └ supplier_name
  • String
  • 安徽贺织服装科技有限公司
  • 供应商名称
  • └ gmt_create
  • Date
  • 1606304417000
  • 创建时间
  • └ invoice_date
  • Date
  • 1606313338000
  • 开票日期
  • └ invoice_num
  • Number
  • 0.0
  • 税票确认数量
  • └ ou_name
  • String
  • 浙江银泰百货有限公司
  • ou名称
  • └ invoice_including_tax_amount
  • Number
  • -1610708
  • 税票含税金额
  • └ invoice_confirm_date
  • Date
  • 1627444800000
  • 税票确认时间
  • └ tax_rate_no
  • String
  • JX13
  • 税码
  • └ invoice_id
  • Number
  • 1
  • 发票id
  • └ business_type
  • Number
  • 0
  • 业务类型
  • └ invoice_status
  • Number
  • 1
  • 税票状态
  • └ contract_code
  • String
  • 2020050922114520
  • 合同号
  • └ settle_type
  • Number
  • 0
  • 关联单据类型
  • └ pay_date
  • Date
  • 1627444800000
  • 预付款日期
  • └ success
  • Boolean
  • true
  • 是否完成

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaMosCurrentBillQueryRequest req = new AlibabaMosCurrentBillQueryRequest();
AlibabaMosCurrentBillQueryRequest.CurrentBillQuery obj1 = new AlibabaMosCurrentBillQueryRequest.CurrentBillQuery();
obj1.setRelationNo("1");
obj1.setChargeTypeId("1");
obj1.setSupplierCodes("");
obj1.setCurrentType(1L);
obj1.setOldNo("1");
obj1.setStoreNos("");
obj1.setOuCode("I57");
obj1.setPageSize(20L);
obj1.setSupplierCode("1");
obj1.setBusinessTypes(new Long[] {  };
);
obj1.setFundsStatus(new Long[] {  };
);
obj1.setWriteOffStatus(new Long[] { 1 };
);
obj1.setStoreNo("I57");
obj1.setCurrentTypes(new Long[] {  };
);
obj1.setPageNo(1L);
obj1.setInvoiceStatus(new Long[] { 1 };
);
obj1.setContractCode("1");
obj1.setSettleType(1L);
req.setQuery(obj1);
AlibabaMosCurrentBillQueryResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<alibaba_mos_current_bill_query_response>
    <current_bill_base_api_d_t_o_multi_result>
        <async>false</async>
        <total>1</total>
        <datas>
            <data>
                <relation_no>123456789</relation_no>
                <charge_type_name>charge_type_name</charge_type_name>
                <current_type>1</current_type>
                <old_no>23002783441</old_no>
                <department_code>department_code</department_code>
                <num>0.0</num>
                <invoice_tax_amount>-185303</invoice_tax_amount>
                <ou_code>I57</ou_code>
                <source>3</source>
                <write_off_status>3</write_off_status>
                <write_off_amount>-3221416</write_off_amount>
                <valid_status>1</valid_status>
                <invoice_type>1</invoice_type>
                <accounting_period>1601481600000</accounting_period>
                <id>120112519401653336</id>
                <invoice_no>1</invoice_no>
                <period_end>1627531200000</period_end>
                <department_name>department_name</department_name>
                <can_payment_amount>0</can_payment_amount>
                <including_tax_amount>-1610708</including_tax_amount>
                <current_no>120112519401653336</current_no>
                <bill_date>1606233600000</bill_date>
                <invoice_code>FP2011435189</invoice_code>
                <version>7</version>
                <tax_rate>0.13</tax_rate>
                <store_no>HZ01</store_no>
                <source_type>0</source_type>
                <credit_amount>-1439659</credit_amount>
                <tax_amount>-185303</tax_amount>
                <period_start>1627444800000</period_start>
                <excluding_tax_amount>-1425405</excluding_tax_amount>
                <charge_type_id>001</charge_type_id>
                <gmt_modified>1627466053000</gmt_modified>
                <counter_no>123456</counter_no>
                <hang_flag>0</hang_flag>
                <supplier_code>0002631</supplier_code>
                <funds_status>0</funds_status>
                <invoice_excluding_tax_amount>-1425405</invoice_excluding_tax_amount>
                <counter_name>counter_name</counter_name>
                <supplier_inside_outside>1</supplier_inside_outside>
                <store_name>合肥滨湖店</store_name>
                <attribute>{&quot;writeOffDateList&quot;:[&quot;2020-11-25&quot;,&quot;2020-11-27&quot;,&quot;2020-11-28&quot;,&quot;2020-11-29&quot;,&quot;2020-11-30&quot;,&quot;2020-12-01&quot;,&quot;2020-12-29&quot;],&quot;writeOffIdList&quot;:[14539,17245,17253,17259,17306,17328,1320123000301095967],&quot;writeOffTypeList&quot;:[2]}</attribute>
                <pre_pay_date>1627444800000</pre_pay_date>
                <supplier_name>安徽贺织服装科技有限公司</supplier_name>
                <gmt_create>1606304417000</gmt_create>
                <invoice_date>1606313338000</invoice_date>
                <invoice_num>0.0</invoice_num>
                <ou_name>浙江银泰百货有限公司</ou_name>
                <invoice_including_tax_amount>-1610708</invoice_including_tax_amount>
                <invoice_confirm_date>1627444800000</invoice_confirm_date>
                <tax_rate_no>JX13</tax_rate_no>
                <invoice_id>1</invoice_id>
                <business_type>0</business_type>
                <invoice_status>1</invoice_status>
                <contract_code>2020050922114520</contract_code>
                <settle_type>0</settle_type>
                <pay_date>1627444800000</pay_date>
            </data>
        </datas>
        <success>true</success>
    </current_bill_base_api_d_t_o_multi_result>
</alibaba_mos_current_bill_query_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

返回
顶部