simpleerp

v1.0.1

Provides procedures for calling the SimpleERP HTTP API. Runtime: shell with curl/curl.exe or PowerShell (Invoke-WebRequest/Invoke-RestMethod). Credentials: s...

1· 90·0 current·0 all-time

Install

OpenClaw Prompt Flow

Install with OpenClaw

Best for remote or guided setup. Copy the exact prompt, then paste it into OpenClaw for icystssi-lang/simpleerp.

Previewing Install & Setup.
Prompt PreviewInstall & Setup
Install the skill "simpleerp" (icystssi-lang/simpleerp) from ClawHub.
Skill page: https://clawhub.ai/icystssi-lang/simpleerp
Keep the work scoped to this skill only.
After install, inspect the skill metadata and help me finish setup.
Use only the metadata you can verify from ClawHub; do not invent missing requirements.
Ask before making any broader environment changes.

Command Line

CLI Commands

Use the direct CLI path if you want to install manually and keep every step visible.

OpenClaw CLI

Bare skill slug

openclaw skills install simpleerp

ClawHub CLI

Package manager switcher

npx clawhub@latest install simpleerp
Security Scan
Capability signals
CryptoCan make purchases
These labels describe what authority the skill may exercise. They are separate from suspicious or malicious moderation verdicts.
VirusTotalVirusTotal
Pending
View report →
OpenClawOpenClaw
Benign
high confidence
Purpose & Capability
Name/description match the contents: SKILL.md provides curl/PowerShell examples and workflows for the API and explicitly documents use of an x-api-key; there are no unrelated environment variables, binaries, or install actions requested.
Instruction Scope
The runtime instructions tell the agent to run curl/PowerShell commands automatically (including admin and create/rotate API-key endpoints when requested). The skill also allows optional inspection of a local simpleerp-api workspace if already present (workspace-root relative paths). This is reasonable for debugging but means the agent may read project files if the repo exists in the workspace.
Install Mechanism
No install spec or code files — the skill is instruction-only, so nothing is downloaded or written to disk by an installer.
Credentials
No required environment variables; the only optional credential reference is SIMPLEERP_API_KEY (used as the x-api-key) which is appropriate and documented. The skill does not request unrelated secrets or multiple external credentials.
Persistence & Privilege
always:false (no forced inclusion). disable-model-invocation is false (normal autonomous invocation). The skill does not request system-wide configuration changes or persistent elevated privileges.
Assessment
This skill appears to do what it says: run HTTP calls against SimpleERP using curl/PowerShell. Before using it, consider: 1) the agent will execute curl/Invoke-WebRequest commands automatically once you provide or the environment supplies an API key — if you want to review actions first, do not provide a production admin key. 2) Admin routes (create/rotate API keys, debug endpoints) are available via the API—only give a key with the minimal permissions needed. 3) If you have the simpleerp-api repo checked out in the workspace, the agent may read specific project files when asked to inspect filters/code; avoid installing the skill in sensitive workspaces if you don't want that. 4) Prefer using a staging instance or scoped API key rather than a production admin key. Overall the skill is coherent and low-risk given these precautions.

Like a lobster shell, security has layers — review code before you run it.

latestvk979gz0q4qtf4shtsskefm0yxn84cjmy
90downloads
1stars
2versions
Updated 3w ago
v1.0.1
MIT-0

SimpleERP API

Use HTTP against the SimpleERP backend. Read domain examples only from the linked reference files; this file stays a navigator and global rules.

Agent execution policy

  • If completing the user request requires running commands/scripts (including curl commands or PowerShell Invoke-WebRequest / Invoke-RestMethod), run them automatically. Do not ask the user to run/execute anything.
  • GET /api/health may run without an API key. All other HTTP calls need a resolved x-api-key per Credentials below; if no key is available after that resolution, ask once for the key before issuing authenticated requests (then continue running commands automatically).

Environment

  • Base URL: http://localhost:3000. Resource paths are under /api (example: http://localhost:3000/api/products). If the user names another host, use it instead of localhost.
  • Clients: Prefer curl on Unix-like shells; on Windows, curl.exe or Invoke-WebRequest / Invoke-RestMethod in PowerShell.

Credentials

  • Header: x-api-key on every request except GET /api/health.

  • Resolution order: (1) API key the user provided in this conversation, if any; (2) environment variable SIMPLEERP_API_KEY; (3) if still missing, ask once for the key, then proceed.

  • Do not invent keys, search arbitrary files for secrets, or read unrelated workspace paths to find credentials.

  • Production: Admin routes need admin_access. Most resources map to explicit PERMISSION_ID checks; a few route modules use permissions.<name> || {} in code, and where that map has no entry yet, requirePermission receives a falsy id and does not enforce a named permission (API key still required). See references/ENDPOINTS.md (Notes).

Minimal GET example

curl "http://localhost:3000/api/health"
Invoke-WebRequest -Method GET -Uri "http://localhost:3000/api/health"

Template

curl "http://localhost:3000/api/<resource>?<query_params>"

Domain reference map

NeedOpen
All paths, methods, auth notesreferences/ENDPOINTS.md
Sys-par, currencies, warehouses, partners, customers, suppliersreferences/master-data-endpoints.md
Products, price lists, related master datareferences/products-and-pricing.md
Inventory, deliveries, transfers, adjustmentsreferences/inventory-and-deliveries.md
Sale/purchase orders, invoices, paymentsreferences/documents-sales-purchasing.md
Returns, credit memos, debit notesreferences/returns-and-memos.md
Users, API keys, permissionsreferences/admin-and-permissions.md
Chained flows (customer → sale order, etc.)references/workflows.md
Report route copy-paste curlsreferences/reports.md
List query allowlists (buildFilters), workspace pathsreferences/query-filters.md

Dynamic list query filters

Most list endpoints build WHERE from a fixed allowlist of query parameters (bind variables; unknown params ignored). See references/query-filters.md for how buildFilters works and workspace-root-relative paths to simpleerp-api source files.

  • Common: limit, offset on list endpoints; many support status or foreign-key ids.
  • Examples
    • /sys-parcodePrefix, limit, offset
    • /currenciesstatus, limit, offset
    • /taxstatus, limit, offset
    • /partnersstatus, limit, offset
    • /productsstatus, sku, limit, offset
    • /customers, /suppliers, /brands, /categories, /price-lists, /areas, /warehousesstatus, limit, offset
    • /credit-termsstatus, limit, offset
    • /uomstatus, prodId, limit, offset
    • /warehouse-zoneswarehouseId, status, limit, offset
    • /bank-accountsstatus, currencyCode, warehouseId, limit, offset
    • /exchange-ratessource, limit, offset
    • /membershipsstatus, limit, offset
    • /inventorywarehouseId, prodId, limit, offset
    • /deliveriesorderId (SALE_ORDER only), warehouseId, status, limit, offset
    • /sale-ordersstatus, customerId, limit, offset
    • /purchase-ordersstatus, supplierId, limit, offset
    • /cust-returnsstatus, customerId, saleOrderId, limit, offset
    • /cust-credit-memos, /cust-debit-notesstatus, customerId, limit, offset
    • /supp-returns, /supp-credit-memos, /supp-debit-notesstatus, supplierId, limit, offset
    • /transfersstatus, fromWhId, toWhId, limit, offset
    • /inventory-adjustmentsstatus, warehouseId, limit, offset
    • /permissionsfunctionId, limit, offset
    • /user-permissionsuserId, permissionId, limit, offset
    • /api-key-permissionsapiKeyId, permissionId, limit, offset

Prefer explicit filters and small limit values.

Report endpoints workflow

Use when the user needs a report and must pick accounts, products, warehouses, partners, customers, or suppliers.

  1. Discover (optional)GET /api/reports. Use includeData=true for quick aggregates. Example: GET /api/reports?includeData=true&topN=10
  2. Resolve IDs — Helper lists: /api/reports/helpers/warehouses, .../customers, .../products, .../partners, .../suppliers, .../accounts (for GL). If the user gives names or SKU, search helpers first, then call the report.
  3. CSV multi-selectproductIds=1,2,3, warehouseIds=10,11, customerIds=5,9, supplierIds=7, accountIds=100,101. Dedupe IDs; use limit / offset where supported.
  4. Call the report — Date window: fromDate=YYYY-MM-DD, toDate=YYYY-MM-DD. Full path table: references/ENDPOINTS.md (Reports). Copy-paste curls: references/reports.md.

GET /api/reports returns categories, accessibility metadata, and optional aggregate data; it normalizes singular/CSV filter aliases and may return warnings for bad filters or permissions.

Safety, pagination, and troubleshooting

  • Start with small limit (e.g. 20–50); narrow with status, customerId, supplierId, warehouseId, prodId, and other allowlisted query params from Dynamic list query filters where available.
  • Use GET for reads; POST to create; PUT/PATCH to update; DELETE only when requested and safe. Prefer deactivating via status over deleting master data or financial documents.
  • 400: often missing required fields (e.g. priceListId on customers, order dates). 409: duplicates or constraints (e.g. SKU, partner).

Comments

Loading comments...