文档中心 > API类目 > 电子发票

alibaba.einvoice.tax.opt.esignresult.query (查询用户签约税优结果)

查询用户是否已经签约

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
employer_code String 可选 GuangGuang 业务方编码
identification_in_belonging_employer String 可选 1052965195 用户在业务方平台的userid

响应参数

名称 类型 示例值 描述
results AgreementInfoDto [] 查询结果
  • └ agreement_type
  • String
  • demo
  • 协议类型
  • └ asset_symbol
  • String
  • chengdai02@alitest.com
  • 资产符号
  • └ employer_code
  • String
  • GuangGuang
  • 业务方编码
  • └ sign_time
  • String
  • demo
  • 签约时间
  • └ agreement_url
  • String
  • https://mdgwdev.alipay.net/induspt_tax/uri/file/afts.map/20201124001524204000000018378a6966351ad64d13b28d361c2ecad63c?bizType=induspt_tax
  • 合同链接
  • └ contractor_code
  • String
  • YouErLan
  • 供应商编码
  • └ contractor_name
  • String
  • 海南卓菁玥网络科技有限公司
  • 供应商名称
  • └ asset_type
  • String
  • ALIPAY_BALANCE
  • 资产类型
  • └ apply_dutiable_mode_enum
  • String
  • SUMMARY_DECLARATION
  • 报税类型
  • └ pay_salary_mode_enum
  • String
  • DESIGNATE_EMPLOYEE_AND_AMOUNT
  • 发薪模式
  • └ tax_optimization_mode
  • String
  • NATURAL_PERSON_LEVIED
  • 税优模式
  • └ termination_time
  • String
  • demo
  • 解约时间
  • └ identification_in_belonging_employer
  • String
  • 1052965195
  • 用户在业务方平台的userid
  • └ extend_field
  • String
  • demo
  • 扩展信息
  • └ status
  • String
  • SIGNED
  • 签约状态

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaEinvoiceTaxOptEsignresultQueryRequest req = new AlibabaEinvoiceTaxOptEsignresultQueryRequest();
req.setEmployerCode("GuangGuang");
req.setIdentificationInBelongingEmployer("1052965195");
AlibabaEinvoiceTaxOptEsignresultQueryResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<alibaba_einvoice_tax_opt_esignresult_query_response>
    <results>
        <agreement_info_dto>
            <agreement_type>demo</agreement_type>
            <asset_symbol>chengdai02@alitest.com</asset_symbol>
            <employer_code>GuangGuang</employer_code>
            <sign_time>demo</sign_time>
            <agreement_url>https://mdgwdev.alipay.net/induspt_tax/uri/file/afts.map/20201124001524204000000018378a6966351ad64d13b28d361c2ecad63c?bizType=induspt_tax</agreement_url>
            <contractor_code>YouErLan</contractor_code>
            <contractor_name>海南卓菁玥网络科技有限公司</contractor_name>
            <asset_type>ALIPAY_BALANCE</asset_type>
            <apply_dutiable_mode_enum>SUMMARY_DECLARATION</apply_dutiable_mode_enum>
            <pay_salary_mode_enum>DESIGNATE_EMPLOYEE_AND_AMOUNT</pay_salary_mode_enum>
            <tax_optimization_mode>NATURAL_PERSON_LEVIED</tax_optimization_mode>
            <termination_time>demo</termination_time>
            <identification_in_belonging_employer>1052965195</identification_in_belonging_employer>
            <extend_field>demo</extend_field>
            <status>SIGNED</status>
        </agreement_info_dto>
    </results>
</alibaba_einvoice_tax_opt_esignresult_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

返回
顶部