AI Agent Hub
Back to skills
Qixiangyun Digital E-Invoice Issuance icon

Qixiangyun Digital E-Invoice Issuance

Business Operations Updated 2026.08.30

Paste the following prompt into your AI chat to install this skill:

Please install @user_bbae3f97/qixiangyun-invoice-issuance-skill according to https://skillhub.cn/install/skillhub.md.

About this skill

Problem

In digital e-invoice workflows, agents often have to coordinate tax-authority login state, seller account context, tax classification codes, buyer details, invoice confirmation, and asynchronous result queries. Exposing raw tool parameters to users or relying on model memory for default product codes can cause incorrect invoices, cross-tenant confusion, or sensitive-data leakage.

How It Works

The skill centers on scripts/invoice_issuance_workflow.py and builds a resumable invoice-draft pipeline:
- One-time login: It creates a web login session through the Qixiangyun agent_login MCP service. After the user selects the enterprise account, the script validates nsrsbh, accountId, and aggOrgId, then issues a short-lived Agent Grant.
- Drafting and confirmation: It parses natural-language requirements, enriches buyer data through title lookup, queries product tax classifications via invoice_classification, and generates a confirmation_summary. Real invoice issuance happens only after explicit user confirmation.
- Results and red-letter correction: It supports invoice detail queries, PDF/OFD/XML download links, face-scan status checks, and red-letter correction after validating the original blue invoice.

Boundaries

The skill requires Qixiangyun API credentials and a valid tax-authority login state. Multi-tenant deployments must inject secrets at the platform boundary and isolate state directories. Write operations such as invoice issuance, red-letter correction, and login-session creation are not automatically replayed; success should not be claimed until an invoice number or document URL is returned.

Use Cases

  • When finance asks for a 1,000-yuan regular invoice, create a draft, enrich buyer details, confirm the tax code, and wait for approval.
  • If issuance returns a face-scan prompt, show the tax-app QR code, check scan status, and resume the same draft.
  • When a user requests invoice details or a PDF download, query by draft context and render the download section.
  • When a full-amount blue invoice needs correction, verify the original invoice, request red-letter confirmation, and check status.

Best For

  • Finance automation engineers integrating Qixiangyun who need controlled drafts and real invoice issuance from natural-language requests.
  • Backend developers maintaining OpenClaw or custom agents who need one-time login, background waiting, and result resumption.
  • Operations owners handling invoice queries and red-letter correction who need draft-scoped details, downloads, and status checks.
  • Multi-tenant SaaS engineers who need per-tenant isolation for credentials, login state, and invoice draft state.