Skip to content
API Design
Command

/ecpay-invoice

串接綠界電子發票(B2C / B2B / 離線)

BOOST
From plugin
ecpay-api-skill
2306 skills6 commands
Install
$ npx -y skills add ecpay/ecpay-api-skill --agent claude-code

How it fires

How this command gets triggered: by you, by Claude, or both.

  • Fires itselfClaude auto-loads it when your prompt matches the work.
  • You can call itInvoke it directly when you want it.
  • Slash command/ecpay-invoice

Context preview

What this command does when you run it.

串接綠界電子發票(B2C / B2B / 離線)

Command definition

ecpay-invoice.md
description: 串接綠界電子發票(B2C / B2B / 離線)

> **你需要這個指令嗎?** > - 目標:B2C 電子發票自動開立(消費者下單即開票) → ✅ 是 > - 目標:B2B 電子發票交換/存證 → ✅ 是 > - 目標:串接金流收款 → ❌ 先用 `/ecpay-pay`(金流與發票通常一起設計) > - 目標:確認稅務合規(電子發票法規)→ ❌ 請諮詢你的會計師或財政部 eGUI 規範

使用者需要串接綠界電子發票。請依以下步驟引導:

1. 詢問使用者:開給消費者(B2C)還是企業(B2B)?有無網路環境? 2. 根據類型讀取對應 guide:

  • B2C → `guides/04-invoice-b2c.md`
  • B2B → `guides/05-invoice-b2b.md`
  • 離線 → `guides/18-invoice-offline.md`

3. 若需要金流 + 發票整合(收款後自動開票),讀 `guides/11-cross-service-scenarios.md` 場景一 4. **生成程式碼前**,必須從 `references/Invoice/` 對應檔案 web_fetch 最新 API 規格 5. AES 加密實作參考 `guides/14-aes-encryption.md`

---

完成後下一步

  • 金流與發票一起設計(推薦)→ `/ecpay-pay` + `/ecpay-invoice` 合併規劃
  • 加入物流出貨 → `/ecpay-logistics`
  • 上線前確認(含發票測試)→ `/ecpay-go-live`
Ships withecpay-api-skill

綠界科技官方出品 — 由 ECPay 團隊開發與維護,內容與 API 同步更新。 當前版本:V3.4

Get the whole plugin

Other commands on ecpay-api-skill.