返回顶部
m

morningMorning 认证

Use to authenticate with Morning (GreenInvoice) and create/manage clients, items, and accounting documents (invoice/receipt/quote/order/credit).

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 1.0.0
安全检测
已通过
822
下载量
免费
免费
0
收藏
概述
安装方式
版本历史

morning

Morning (GreenInvoice)

使用时机

当您需要通过 Morning / GreenInvoice 执行以下操作时使用此技能:
  • - 使用 API 密钥凭证获取认证令牌 (JWT)
  • 创建/更新 客户
  • 创建/更新 项目
  • 创建 单据(发票/收据/报价单/订单/贷项/借项)
  • 获取单据输出(如 ID/链接)(如果工具支持)

需要用户提供的信息

仅收集操作所需的信息:

认证

  • - apiKeyId
  • apiKeySecret

客户(创建或搜索时)

  • - name
  • 可选:taxId、email、phone、address、city、country

项目(创建时)

  • - name
  • price
  • 可选:description、currency

单据(创建时)

  • - documentType(Invoice / Receipt / Quote / Order / CreditInvoice / DebitInvoice)
  • clientId(或足够创建客户的信息)
  • lines[](每行:description 或 itemId、quantity、unitPrice)
  • 可选:currency、language、description、discount

工具约定

使用带有 action 字段的 morning 工具。

支持的操作

  • - getToken
  • createClient
  • createItem
  • createDocument
  • (可选,如果工具已实现):findClient、findItem、getDocument、listDocuments

安全护栏

  • - 切勿将 apiKeySecret 或 JWT 记录或回显给用户。
  • 优先复用已有的 clientId / itemId。
  • 验证单据行:
- quantity > 0 - unitPrice >= 0
  • - 货币:默认使用 ILS,除非用户另有指定。
  • 语言:默认使用 Hebrew,除非用户另有指定。

示例

1) 认证 (JWT)

json { action: getToken, apiKeyId: YOURAPIKEY_ID, apiKeySecret: YOURAPIKEY_SECRET }

2) 创建客户

json { action: createClient, jwt: JWTFROMgetToken, client: { name: Acme Ltd, taxId: 515555555, email: billing@acme.com, phone: +972-50-000-0000, address: 1 Rothschild Blvd, city: Tel Aviv, country: Israel } }

3) 创建项目

json { action: createItem, jwt: JWTFROMgetToken, item: { name: Consulting hour, description: Senior engineering consulting, price: 500, currency: ILS } }

4) 创建单据(发票)

json { action: createDocument, jwt: JWTFROMgetToken, document: { documentType: Invoice, language: English, currency: ILS, clientId: CLIENT_ID, description: Invoice for January services, lines: [ { description: Consulting hour, quantity: 10, unitPrice: 500 } ] } }

5) 使用 itemId 创建单据(收据)

json { action: createDocument, jwt: JWTFROMgetToken, document: { documentType: Receipt, language: Hebrew, currency: ILS, clientId: CLIENT_ID, lines: [ { itemId: ITEM_ID, quantity: 1, unitPrice: 1200 } ] } }

错误处理

  • - 如果令牌被拒绝(401/403):再次调用 getToken 并重试一次请求。
  • 如果客户/项目已存在:
- 优先返回现有 ID(如果工具支持查找), - 否则给出明确提示:“客户已存在;请提供 clientId 或唯一标识符。”
  • - 如果验证失败:仅询问缺失或无效的字段(例如“quantity 必须大于 0”)。

输出预期

最少返回:
  • - 创建的资源 ID(clientId、itemId、documentId)
  • 如果 API/工具提供,返回相关 URL(PDF/查看链接)

标签

skill ai

通过对话安装

该技能支持在以下平台通过对话安装:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 morning-green-invoice-1776333012 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 morning-green-invoice-1776333012 技能

通过命令行安装

skillhub install morning-green-invoice-1776333012

下载

⬇ 下载 morning v1.0.0(免费)

文件大小: 2.23 KB | 发布时间: 2026-4-17 15:22

v1.0.0 最新 2026-4-17 15:22
Initial release of the "morning" skill for GreenInvoice integration:

- Authenticate with Morning (GreenInvoice) via API key credentials.
- Create and update clients and items.
- Create accounting documents (invoice, receipt, quote, order, credit, debit).
- Retrieve resource IDs and document links if available.
- Includes validation, error handling, and default values for currency and language.

Archiver·手机版·闲社网·闲社论坛·羊毛社区· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2025 闲社网·线报更新论坛·羊毛分享社区·http://xianshe.com

p2p_official_large
返回顶部