erp_read_accounts

Read one or more ERP customer/supplier accounts from Sodiwin.

Category
ERP
Stability
Beta
Version
v1
Auth
cf-access

Input schema

{
  "type": "object",
  "properties": {
    "account_id": { "type": "string", "description": "Sodiwin account ID" },
    "fields": { "type": "array", "items": { "type": "string" }, "description": "Optional field filter" }
  },
  "required": ["account_id"]
}

Output schema

{
  "type": "object",
  "properties": {
    "account_id": { "type": "string" },
    "legal_name": { "type": "string" },
    "balance_eur": { "type": "number" },
    "credit_limit_eur": { "type": "number" },
    "payment_terms_days": { "type": "integer" },
    "overdue_count": { "type": "integer" }
  }
}

Example invocation

{
  "tool": "erp_read_accounts",
  "arguments": { "account_id": "ACME-0042" }
}

Example response

{
  "account_id": "ACME-0042",
  "legal_name": "Acme Bistro SARL",
  "balance_eur": 4210.50,
  "credit_limit_eur": 10000.00,
  "payment_terms_days": 30,
  "overdue_count": 0
}

Reads the canonical account row. Combine with erp_read_orders for a fuller picture. See chapter 42-mcp-tools for the principle behind the read-only ERP surface.