← 返回
安全合规 Key 中文

Morning (Green Invoice)

Use to authenticate with Morning (GreenInvoice) and create/manage clients, items, and accounting documents (invoice/receipt/quote/order/credit).
用于通过 Morning (GreenInvoice) 进行认证,并创建/管理客户、项目及会计单据(发票/收据/报价单/订单/贷项通知单)。
k0renn
安全合规 clawhub v1.0.0 1 版本 99908.8 Key: 需要
★ 0
Stars
📥 1,096
下载
💾 11
安装
1
版本
#latest

概述

Morning (GreenInvoice)

When to use

Use this skill when you need to interact with Morning / GreenInvoice to:

  • Get an auth token (JWT) using API key credentials
  • Create/update clients
  • Create/update items
  • Create documents (invoice / receipt / quote / order / credit / debit)
  • Retrieve document outputs (e.g., IDs / links) if the tool supports it

What you need from the user

Collect only what’s required for the action:

Authentication

  • apiKeyId
  • apiKeySecret

Client (if creating or searching)

  • name
  • Optional: taxId, email, phone, address, city, country

Item (if creating)

  • name
  • price
  • Optional: description, currency

Document (if creating)

  • documentType (Invoice / Receipt / Quote / Order / CreditInvoice / DebitInvoice)
  • clientId (or enough info to create the client)
  • lines[] (each line: description or itemId, quantity, unitPrice)
  • Optional: currency, language, description, discount

Tool contract

Use the morning tool with an action field.

Supported actions

  • getToken
  • createClient
  • createItem
  • createDocument
  • (Optional, if implemented in your tool): findClient, findItem, getDocument, listDocuments

Guardrails

  • Never log or echo apiKeySecret or JWTs back to the user.
  • Prefer reusing existing clientId / itemId when available.
  • Validate document lines:
  • quantity > 0
  • unitPrice >= 0
  • Currency: default to "ILS" unless the user specifies otherwise.
  • Language: default to "Hebrew" unless the user specifies otherwise.

Examples

1) Authenticate (JWT)

{
  "action": "getToken",
  "apiKeyId": "YOUR_API_KEY_ID",
  "apiKeySecret": "YOUR_API_KEY_SECRET"
}

2) Create a client

{
  "action": "createClient",
  "jwt": "JWT_FROM_getToken",
  "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) Create an item

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

4) Create a document (Invoice)

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

5) Create a document (Receipt) using itemId

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

Error handling

  • If token is rejected (401/403): call getToken again and retry the request once.
  • If client/item already exists:
  • Prefer returning the existing ID (if tool supports lookup),
  • Otherwise surface a clear message: “Client already exists; provide clientId or unique identifier.”
  • If validation fails: ask for the missing/invalid fields only (e.g., “quantity must be > 0”).

Output expectations

Return minimally:

  • Created resource IDs (clientId, itemId, documentId)
  • Any relevant URLs (PDF / view links) if the API/tool provides them

版本历史

共 1 个版本

  • v1.0.0 当前
    2026-03-29 02:19 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

security-compliance

OpenClaw Backup

alex3alex
备份与恢复 OpenClaw 数据。适用于创建备份、设置自动备份计划、从备份恢复或管理备份轮转。处理 ~/.openclaw 目录归档并包含适当的排除规则。
★ 89 📥 30,610
security-compliance

Skill Vetter

spclaudehome
AI智能体技能安全预审工具。安装ClawdHub、GitHub等来源技能前,检查风险信号、权限范围及可疑模式。
★ 1,215 📥 266,541
security-compliance

1password

steipete
设置和使用 1Password CLI (op)。适用于:安装 CLI、启用桌面应用集成、登录(单/多账户)、通过 op 读取/注入/运行密钥。
★ 53 📥 31,172