{
  "schemaVersion": "1.0",
  "item": {
    "slug": "zoho-books",
    "name": "Zoho Books",
    "source": "tencent",
    "type": "skill",
    "category": "开发工具",
    "sourceUrl": "https://clawhub.ai/byungkyu/zoho-books",
    "canonicalUrl": "https://clawhub.ai/byungkyu/zoho-books",
    "targetPlatform": "OpenClaw"
  },
  "install": {
    "downloadMode": "redirect",
    "downloadUrl": "/downloads/zoho-books",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=zoho-books",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "installMethod": "Manual import",
    "extraction": "Extract archive",
    "prerequisites": [
      "OpenClaw"
    ],
    "packageFormat": "ZIP package",
    "includedAssets": [
      "SKILL.md",
      "LICENSE.txt"
    ],
    "primaryDoc": "SKILL.md",
    "quickSetup": [
      "Download the package from Yavira.",
      "Extract the archive and review SKILL.md first.",
      "Import or place the package into your OpenClaw setup."
    ],
    "agentAssist": {
      "summary": "Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.",
      "steps": [
        "Download the package from Yavira.",
        "Extract it into a folder your agent can access.",
        "Paste one of the prompts below and point your agent at the extracted folder."
      ],
      "prompts": [
        {
          "label": "New install",
          "body": "I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Tell me what you changed and call out any manual steps you could not complete."
        },
        {
          "label": "Upgrade existing",
          "body": "I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Summarize what changed and any follow-up checks I should run."
        }
      ]
    },
    "sourceHealth": {
      "source": "tencent",
      "status": "healthy",
      "reason": "direct_download_ok",
      "recommendedAction": "download",
      "checkedAt": "2026-05-07T17:22:31.273Z",
      "expiresAt": "2026-05-14T17:22:31.273Z",
      "httpStatus": 200,
      "finalUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=afrexai-annual-report",
      "contentType": "application/zip",
      "probeMethod": "head",
      "details": {
        "probeUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=afrexai-annual-report",
        "contentDisposition": "attachment; filename=\"afrexai-annual-report-1.0.0.zip\"",
        "redirectLocation": null,
        "bodySnippet": null
      },
      "scope": "source",
      "summary": "Source download looks usable.",
      "detail": "Yavira can redirect you to the upstream package for this source.",
      "primaryActionLabel": "Download for OpenClaw",
      "primaryActionHref": "/downloads/zoho-books"
    },
    "validation": {
      "installChecklist": [
        "Use the Yavira download entry.",
        "Review SKILL.md after the package is downloaded.",
        "Confirm the extracted package contains the expected setup assets."
      ],
      "postInstallChecks": [
        "Confirm the extracted package includes the expected docs or setup files.",
        "Validate the skill or prompts are available in your target agent workspace.",
        "Capture any manual follow-up steps the agent could not complete."
      ]
    },
    "downloadPageUrl": "https://openagent3.xyz/downloads/zoho-books",
    "agentPageUrl": "https://openagent3.xyz/skills/zoho-books/agent",
    "manifestUrl": "https://openagent3.xyz/skills/zoho-books/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/zoho-books/agent.md"
  },
  "agentAssist": {
    "summary": "Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.",
    "steps": [
      "Download the package from Yavira.",
      "Extract it into a folder your agent can access.",
      "Paste one of the prompts below and point your agent at the extracted folder."
    ],
    "prompts": [
      {
        "label": "New install",
        "body": "I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Tell me what you changed and call out any manual steps you could not complete."
      },
      {
        "label": "Upgrade existing",
        "body": "I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Summarize what changed and any follow-up checks I should run."
      }
    ]
  },
  "documentation": {
    "source": "clawhub",
    "primaryDoc": "SKILL.md",
    "sections": [
      {
        "title": "Zoho Books",
        "body": "Access the Zoho Books API with managed OAuth authentication. Manage invoices, contacts, bills, expenses, sales orders, purchase orders, and other accounting data with full CRUD operations."
      },
      {
        "title": "Quick Start",
        "body": "# List contacts\npython <<'EOF'\nimport urllib.request, os, json\nreq = urllib.request.Request('https://gateway.maton.ai/zoho-books/books/v3/contacts')\nreq.add_header('Authorization', f'Bearer {os.environ[\"MATON_API_KEY\"]}')\nprint(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))\nEOF"
      },
      {
        "title": "Base URL",
        "body": "https://gateway.maton.ai/zoho-books/books/v3/{endpoint}\n\nThe gateway proxies requests to www.zohoapis.com/books/v3 and automatically injects your OAuth token."
      },
      {
        "title": "Authentication",
        "body": "All requests require the Maton API key in the Authorization header:\n\nAuthorization: Bearer $MATON_API_KEY\n\nEnvironment Variable: Set your API key as MATON_API_KEY:\n\nexport MATON_API_KEY=\"YOUR_API_KEY\""
      },
      {
        "title": "Getting Your API Key",
        "body": "Sign in or create an account at maton.ai\nGo to maton.ai/settings\nCopy your API key"
      },
      {
        "title": "Connection Management",
        "body": "Manage your Zoho Books OAuth connections at https://ctrl.maton.ai."
      },
      {
        "title": "List Connections",
        "body": "python <<'EOF'\nimport urllib.request, os, json\nreq = urllib.request.Request('https://ctrl.maton.ai/connections?app=zoho-books&status=ACTIVE')\nreq.add_header('Authorization', f'Bearer {os.environ[\"MATON_API_KEY\"]}')\nprint(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))\nEOF"
      },
      {
        "title": "Create Connection",
        "body": "python <<'EOF'\nimport urllib.request, os, json\ndata = json.dumps({'app': 'zoho-books'}).encode()\nreq = urllib.request.Request('https://ctrl.maton.ai/connections', data=data, method='POST')\nreq.add_header('Authorization', f'Bearer {os.environ[\"MATON_API_KEY\"]}')\nreq.add_header('Content-Type', 'application/json')\nprint(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))\nEOF"
      },
      {
        "title": "Get Connection",
        "body": "python <<'EOF'\nimport urllib.request, os, json\nreq = urllib.request.Request('https://ctrl.maton.ai/connections/{connection_id}')\nreq.add_header('Authorization', f'Bearer {os.environ[\"MATON_API_KEY\"]}')\nprint(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))\nEOF\n\nResponse:\n\n{\n  \"connection\": {\n    \"connection_id\": \"21fd90f9-5935-43cd-b6c8-bde9d915ca80\",\n    \"status\": \"ACTIVE\",\n    \"creation_time\": \"2025-12-08T07:20:53.488460Z\",\n    \"last_updated_time\": \"2026-01-31T20:03:32.593153Z\",\n    \"url\": \"https://connect.maton.ai/?session_token=...\",\n    \"app\": \"zoho-books\",\n    \"metadata\": {}\n  }\n}\n\nOpen the returned url in a browser to complete OAuth authorization."
      },
      {
        "title": "Delete Connection",
        "body": "python <<'EOF'\nimport urllib.request, os, json\nreq = urllib.request.Request('https://ctrl.maton.ai/connections/{connection_id}', method='DELETE')\nreq.add_header('Authorization', f'Bearer {os.environ[\"MATON_API_KEY\"]}')\nprint(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))\nEOF"
      },
      {
        "title": "Specifying Connection",
        "body": "If you have multiple Zoho Books connections, specify which one to use with the Maton-Connection header:\n\npython <<'EOF'\nimport urllib.request, os, json\nreq = urllib.request.Request('https://gateway.maton.ai/zoho-books/books/v3/contacts')\nreq.add_header('Authorization', f'Bearer {os.environ[\"MATON_API_KEY\"]}')\nreq.add_header('Maton-Connection', '21fd90f9-5935-43cd-b6c8-bde9d915ca80')\nprint(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))\nEOF\n\nIf omitted, the gateway uses the default (oldest) active connection."
      },
      {
        "title": "Available Modules",
        "body": "Zoho Books organizes data into modules. Key modules include:\n\nModuleEndpointDescriptionContacts/contactsCustomers and vendorsInvoices/invoicesSales invoicesBills/billsVendor billsExpenses/expensesBusiness expensesSales Orders/salesordersSales ordersPurchase Orders/purchaseordersPurchase ordersCredit Notes/creditnotesCustomer credit notesRecurring Invoices/recurringinvoicesAutomated recurring invoicesRecurring Bills/recurringbillsAutomated recurring bills"
      },
      {
        "title": "Contacts",
        "body": "List Contacts\n\nGET /zoho-books/books/v3/contacts\n\nExample:\n\npython <<'EOF'\nimport urllib.request, os, json\nreq = urllib.request.Request('https://gateway.maton.ai/zoho-books/books/v3/contacts')\nreq.add_header('Authorization', f'Bearer {os.environ[\"MATON_API_KEY\"]}')\nprint(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))\nEOF\n\nResponse:\n\n{\n  \"code\": 0,\n  \"message\": \"success\",\n  \"contacts\": [...],\n  \"page_context\": {\n    \"page\": 1,\n    \"per_page\": 200,\n    \"has_more_page\": false,\n    \"sort_column\": \"contact_name\",\n    \"sort_order\": \"A\"\n  }\n}\n\nGet Contact\n\nGET /zoho-books/books/v3/contacts/{contact_id}\n\nExample:\n\npython <<'EOF'\nimport urllib.request, os, json\nreq = urllib.request.Request('https://gateway.maton.ai/zoho-books/books/v3/contacts/8527119000000099001')\nreq.add_header('Authorization', f'Bearer {os.environ[\"MATON_API_KEY\"]}')\nprint(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))\nEOF\n\nCreate Contact\n\nPOST /zoho-books/books/v3/contacts\nContent-Type: application/json\n\n{\n  \"contact_name\": \"Customer Name\",\n  \"contact_type\": \"customer\"\n}\n\nRequired Fields:\n\ncontact_name - Display name for the contact\ncontact_type - Either customer or vendor\n\nOptional Fields:\n\ncompany_name - Legal entity name\nemail - Email address\nphone - Phone number\nbilling_address - Address object\npayment_terms - Days for payment\n\nExample:\n\npython <<'EOF'\nimport urllib.request, os, json\ndata = json.dumps({\n    \"contact_name\": \"Acme Corporation\",\n    \"contact_type\": \"customer\",\n    \"company_name\": \"Acme Corp\",\n    \"email\": \"billing@acme.com\",\n    \"phone\": \"+1-555-1234\"\n}).encode()\nreq = urllib.request.Request('https://gateway.maton.ai/zoho-books/books/v3/contacts', data=data, method='POST')\nreq.add_header('Authorization', f'Bearer {os.environ[\"MATON_API_KEY\"]}')\nreq.add_header('Content-Type', 'application/json')\nprint(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))\nEOF\n\nResponse:\n\n{\n  \"code\": 0,\n  \"message\": \"The contact has been added.\",\n  \"contact\": {\n    \"contact_id\": \"8527119000000099001\",\n    \"contact_name\": \"Acme Corporation\",\n    \"company_name\": \"Acme Corp\",\n    \"contact_type\": \"customer\",\n    ...\n  }\n}\n\nUpdate Contact\n\nPUT /zoho-books/books/v3/contacts/{contact_id}\nContent-Type: application/json\n\n{\n  \"contact_name\": \"Updated Name\",\n  \"phone\": \"+1-555-9999\"\n}\n\nExample:\n\npython <<'EOF'\nimport urllib.request, os, json\ndata = json.dumps({\n    \"contact_name\": \"Acme Corporation Updated\",\n    \"phone\": \"+1-555-9999\"\n}).encode()\nreq = urllib.request.Request('https://gateway.maton.ai/zoho-books/books/v3/contacts/8527119000000099001', data=data, method='PUT')\nreq.add_header('Authorization', f'Bearer {os.environ[\"MATON_API_KEY\"]}')\nreq.add_header('Content-Type', 'application/json')\nprint(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))\nEOF\n\nDelete Contact\n\nDELETE /zoho-books/books/v3/contacts/{contact_id}\n\nExample:\n\npython <<'EOF'\nimport urllib.request, os, json\nreq = urllib.request.Request('https://gateway.maton.ai/zoho-books/books/v3/contacts/8527119000000099001', method='DELETE')\nreq.add_header('Authorization', f'Bearer {os.environ[\"MATON_API_KEY\"]}')\nprint(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))\nEOF\n\nResponse:\n\n{\n  \"code\": 0,\n  \"message\": \"The customer has been deleted.\"\n}"
      },
      {
        "title": "Invoices",
        "body": "List Invoices\n\nGET /zoho-books/books/v3/invoices\n\nExample:\n\npython <<'EOF'\nimport urllib.request, os, json\nreq = urllib.request.Request('https://gateway.maton.ai/zoho-books/books/v3/invoices')\nreq.add_header('Authorization', f'Bearer {os.environ[\"MATON_API_KEY\"]}')\nprint(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))\nEOF\n\nGet Invoice\n\nGET /zoho-books/books/v3/invoices/{invoice_id}\n\nCreate Invoice\n\nPOST /zoho-books/books/v3/invoices\nContent-Type: application/json\n\n{\n  \"customer_id\": \"8527119000000099001\",\n  \"line_items\": [\n    {\n      \"item_id\": \"8527119000000100001\",\n      \"quantity\": 1,\n      \"rate\": 100.00\n    }\n  ]\n}\n\nRequired Fields:\n\ncustomer_id - Customer identifier\nline_items - Array of items with item_id or manual entry\n\nOptional Fields:\n\ninvoice_number - Auto-generated if not specified\ndate - Invoice date (yyyy-mm-dd format)\ndue_date - Payment due date\ndiscount - Percentage or fixed amount\npayment_terms - Days until due\n\nUpdate Invoice\n\nPUT /zoho-books/books/v3/invoices/{invoice_id}\n\nDelete Invoice\n\nDELETE /zoho-books/books/v3/invoices/{invoice_id}\n\nInvoice Actions\n\n# Mark as sent\nPOST /zoho-books/books/v3/invoices/{invoice_id}/status/sent\n\n# Void invoice\nPOST /zoho-books/books/v3/invoices/{invoice_id}/status/void\n\n# Email invoice\nPOST /zoho-books/books/v3/invoices/{invoice_id}/email"
      },
      {
        "title": "Bills",
        "body": "List Bills\n\nGET /zoho-books/books/v3/bills\n\nExample:\n\npython <<'EOF'\nimport urllib.request, os, json\nreq = urllib.request.Request('https://gateway.maton.ai/zoho-books/books/v3/bills')\nreq.add_header('Authorization', f'Bearer {os.environ[\"MATON_API_KEY\"]}')\nprint(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))\nEOF\n\nCreate Bill\n\nPOST /zoho-books/books/v3/bills\nContent-Type: application/json\n\n{\n  \"vendor_id\": \"8527119000000099002\",\n  \"bill_number\": \"BILL-001\",\n  \"date\": \"2026-02-06\",\n  \"line_items\": [\n    {\n      \"account_id\": \"8527119000000100002\",\n      \"description\": \"Office Supplies\",\n      \"amount\": 150.00\n    }\n  ]\n}\n\nRequired Fields:\n\nvendor_id - Vendor identifier\nbill_number - Unique bill number\ndate - Bill date (yyyy-mm-dd)\n\nUpdate Bill\n\nPUT /zoho-books/books/v3/bills/{bill_id}\n\nDelete Bill\n\nDELETE /zoho-books/books/v3/bills/{bill_id}"
      },
      {
        "title": "Expenses",
        "body": "List Expenses\n\nGET /zoho-books/books/v3/expenses\n\nExample:\n\npython <<'EOF'\nimport urllib.request, os, json\nreq = urllib.request.Request('https://gateway.maton.ai/zoho-books/books/v3/expenses')\nreq.add_header('Authorization', f'Bearer {os.environ[\"MATON_API_KEY\"]}')\nprint(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))\nEOF\n\nCreate Expense\n\nPOST /zoho-books/books/v3/expenses\nContent-Type: application/json\n\n{\n  \"account_id\": \"8527119000000100003\",\n  \"date\": \"2026-02-06\",\n  \"amount\": 75.50,\n  \"paid_through_account_id\": \"8527119000000100004\",\n  \"description\": \"Business lunch\"\n}\n\nRequired Fields:\n\naccount_id - Expense account ID\ndate - Expense date (yyyy-mm-dd)\namount - Expense amount\npaid_through_account_id - Payment account ID\n\nOptional Fields:\n\ndescription - Expense details\ncustomer_id - Billable customer ID\nis_billable - Boolean for billable expenses\nproject_id - Associated project\n\nUpdate Expense\n\nPUT /zoho-books/books/v3/expenses/{expense_id}\n\nDelete Expense\n\nDELETE /zoho-books/books/v3/expenses/{expense_id}"
      },
      {
        "title": "Sales Orders",
        "body": "List Sales Orders\n\nGET /zoho-books/books/v3/salesorders\n\nCreate Sales Order\n\nPOST /zoho-books/books/v3/salesorders"
      },
      {
        "title": "Purchase Orders",
        "body": "List Purchase Orders\n\nGET /zoho-books/books/v3/purchaseorders\n\nCreate Purchase Order\n\nPOST /zoho-books/books/v3/purchaseorders"
      },
      {
        "title": "Credit Notes",
        "body": "List Credit Notes\n\nGET /zoho-books/books/v3/creditnotes"
      },
      {
        "title": "Recurring Invoices",
        "body": "List Recurring Invoices\n\nGET /zoho-books/books/v3/recurringinvoices"
      },
      {
        "title": "Recurring Bills",
        "body": "List Recurring Bills\n\nGET /zoho-books/books/v3/recurringbills"
      },
      {
        "title": "Pagination",
        "body": "Zoho Books uses page-based pagination:\n\nGET /zoho-books/books/v3/contacts?page=1&per_page=50\n\nResponse includes pagination info in page_context:\n\n{\n  \"code\": 0,\n  \"message\": \"success\",\n  \"contacts\": [...],\n  \"page_context\": {\n    \"page\": 1,\n    \"per_page\": 50,\n    \"has_more_page\": true,\n    \"sort_column\": \"contact_name\",\n    \"sort_order\": \"A\"\n  }\n}\n\nContinue fetching while has_more_page is true, incrementing page each time."
      },
      {
        "title": "JavaScript",
        "body": "const response = await fetch(\n  'https://gateway.maton.ai/zoho-books/books/v3/contacts',\n  {\n    headers: {\n      'Authorization': `Bearer ${process.env.MATON_API_KEY}`\n    }\n  }\n);\nconst data = await response.json();"
      },
      {
        "title": "Python",
        "body": "import os\nimport requests\n\nresponse = requests.get(\n    'https://gateway.maton.ai/zoho-books/books/v3/contacts',\n    headers={'Authorization': f'Bearer {os.environ[\"MATON_API_KEY\"]}'}\n)\ndata = response.json()"
      },
      {
        "title": "Notes",
        "body": "All successful responses have code: 0 and a message field\nDates should be in yyyy-mm-dd format\nContact types are customer or vendor\nSome modules (items, chart of accounts, bank accounts, projects) may require additional OAuth scopes. If you receive a scope error, contact Maton support at support@maton.ai with the specific operations/APIs you need and your use-case\nRate limits: 100 requests/minute per organization\nDaily limits vary by plan: Free (1,000), Standard (2,000), Professional (5,000), Paid (10,000)\nIMPORTANT: When using curl commands, use curl -g when URLs contain brackets to disable glob parsing\nIMPORTANT: When piping curl output to jq or other commands, environment variables like $MATON_API_KEY may not expand correctly in some shell environments"
      },
      {
        "title": "Error Handling",
        "body": "StatusMeaning400Missing Zoho Books connection or invalid request401Invalid or missing Maton API key, or OAuth scope mismatch404Resource not found429Rate limited4xx/5xxPassthrough error from Zoho Books API"
      },
      {
        "title": "Common Error Codes",
        "body": "CodeDescription0Success57Not authorized (OAuth scope mismatch)1Invalid value2Mandatory field missing3Resource does not exist5Invalid URL"
      },
      {
        "title": "Troubleshooting: API Key Issues",
        "body": "Check that the MATON_API_KEY environment variable is set:\n\necho $MATON_API_KEY\n\nVerify the API key is valid by listing connections:\n\npython <<'EOF'\nimport urllib.request, os, json\nreq = urllib.request.Request('https://ctrl.maton.ai/connections')\nreq.add_header('Authorization', f'Bearer {os.environ[\"MATON_API_KEY\"]}')\nprint(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))\nEOF"
      },
      {
        "title": "Troubleshooting: Invalid App Name",
        "body": "Ensure your URL path starts with zoho-books. For example:\n\nCorrect: https://gateway.maton.ai/zoho-books/books/v3/contacts\nIncorrect: https://gateway.maton.ai/books/v3/contacts"
      },
      {
        "title": "Resources",
        "body": "Zoho Books API v3 Introduction\nZoho Books Invoices API\nZoho Books Contacts API\nZoho Books Bills API\nZoho Books Expenses API\nMaton Community\nMaton Support"
      }
    ],
    "body": "Zoho Books\n\nAccess the Zoho Books API with managed OAuth authentication. Manage invoices, contacts, bills, expenses, sales orders, purchase orders, and other accounting data with full CRUD operations.\n\nQuick Start\n# List contacts\npython <<'EOF'\nimport urllib.request, os, json\nreq = urllib.request.Request('https://gateway.maton.ai/zoho-books/books/v3/contacts')\nreq.add_header('Authorization', f'Bearer {os.environ[\"MATON_API_KEY\"]}')\nprint(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))\nEOF\n\nBase URL\nhttps://gateway.maton.ai/zoho-books/books/v3/{endpoint}\n\n\nThe gateway proxies requests to www.zohoapis.com/books/v3 and automatically injects your OAuth token.\n\nAuthentication\n\nAll requests require the Maton API key in the Authorization header:\n\nAuthorization: Bearer $MATON_API_KEY\n\n\nEnvironment Variable: Set your API key as MATON_API_KEY:\n\nexport MATON_API_KEY=\"YOUR_API_KEY\"\n\nGetting Your API Key\nSign in or create an account at maton.ai\nGo to maton.ai/settings\nCopy your API key\nConnection Management\n\nManage your Zoho Books OAuth connections at https://ctrl.maton.ai.\n\nList Connections\npython <<'EOF'\nimport urllib.request, os, json\nreq = urllib.request.Request('https://ctrl.maton.ai/connections?app=zoho-books&status=ACTIVE')\nreq.add_header('Authorization', f'Bearer {os.environ[\"MATON_API_KEY\"]}')\nprint(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))\nEOF\n\nCreate Connection\npython <<'EOF'\nimport urllib.request, os, json\ndata = json.dumps({'app': 'zoho-books'}).encode()\nreq = urllib.request.Request('https://ctrl.maton.ai/connections', data=data, method='POST')\nreq.add_header('Authorization', f'Bearer {os.environ[\"MATON_API_KEY\"]}')\nreq.add_header('Content-Type', 'application/json')\nprint(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))\nEOF\n\nGet Connection\npython <<'EOF'\nimport urllib.request, os, json\nreq = urllib.request.Request('https://ctrl.maton.ai/connections/{connection_id}')\nreq.add_header('Authorization', f'Bearer {os.environ[\"MATON_API_KEY\"]}')\nprint(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))\nEOF\n\n\nResponse:\n\n{\n  \"connection\": {\n    \"connection_id\": \"21fd90f9-5935-43cd-b6c8-bde9d915ca80\",\n    \"status\": \"ACTIVE\",\n    \"creation_time\": \"2025-12-08T07:20:53.488460Z\",\n    \"last_updated_time\": \"2026-01-31T20:03:32.593153Z\",\n    \"url\": \"https://connect.maton.ai/?session_token=...\",\n    \"app\": \"zoho-books\",\n    \"metadata\": {}\n  }\n}\n\n\nOpen the returned url in a browser to complete OAuth authorization.\n\nDelete Connection\npython <<'EOF'\nimport urllib.request, os, json\nreq = urllib.request.Request('https://ctrl.maton.ai/connections/{connection_id}', method='DELETE')\nreq.add_header('Authorization', f'Bearer {os.environ[\"MATON_API_KEY\"]}')\nprint(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))\nEOF\n\nSpecifying Connection\n\nIf you have multiple Zoho Books connections, specify which one to use with the Maton-Connection header:\n\npython <<'EOF'\nimport urllib.request, os, json\nreq = urllib.request.Request('https://gateway.maton.ai/zoho-books/books/v3/contacts')\nreq.add_header('Authorization', f'Bearer {os.environ[\"MATON_API_KEY\"]}')\nreq.add_header('Maton-Connection', '21fd90f9-5935-43cd-b6c8-bde9d915ca80')\nprint(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))\nEOF\n\n\nIf omitted, the gateway uses the default (oldest) active connection.\n\nAPI Reference\nAvailable Modules\n\nZoho Books organizes data into modules. Key modules include:\n\nModule\tEndpoint\tDescription\nContacts\t/contacts\tCustomers and vendors\nInvoices\t/invoices\tSales invoices\nBills\t/bills\tVendor bills\nExpenses\t/expenses\tBusiness expenses\nSales Orders\t/salesorders\tSales orders\nPurchase Orders\t/purchaseorders\tPurchase orders\nCredit Notes\t/creditnotes\tCustomer credit notes\nRecurring Invoices\t/recurringinvoices\tAutomated recurring invoices\nRecurring Bills\t/recurringbills\tAutomated recurring bills\nContacts\nList Contacts\nGET /zoho-books/books/v3/contacts\n\n\nExample:\n\npython <<'EOF'\nimport urllib.request, os, json\nreq = urllib.request.Request('https://gateway.maton.ai/zoho-books/books/v3/contacts')\nreq.add_header('Authorization', f'Bearer {os.environ[\"MATON_API_KEY\"]}')\nprint(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))\nEOF\n\n\nResponse:\n\n{\n  \"code\": 0,\n  \"message\": \"success\",\n  \"contacts\": [...],\n  \"page_context\": {\n    \"page\": 1,\n    \"per_page\": 200,\n    \"has_more_page\": false,\n    \"sort_column\": \"contact_name\",\n    \"sort_order\": \"A\"\n  }\n}\n\nGet Contact\nGET /zoho-books/books/v3/contacts/{contact_id}\n\n\nExample:\n\npython <<'EOF'\nimport urllib.request, os, json\nreq = urllib.request.Request('https://gateway.maton.ai/zoho-books/books/v3/contacts/8527119000000099001')\nreq.add_header('Authorization', f'Bearer {os.environ[\"MATON_API_KEY\"]}')\nprint(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))\nEOF\n\nCreate Contact\nPOST /zoho-books/books/v3/contacts\nContent-Type: application/json\n\n{\n  \"contact_name\": \"Customer Name\",\n  \"contact_type\": \"customer\"\n}\n\n\nRequired Fields:\n\ncontact_name - Display name for the contact\ncontact_type - Either customer or vendor\n\nOptional Fields:\n\ncompany_name - Legal entity name\nemail - Email address\nphone - Phone number\nbilling_address - Address object\npayment_terms - Days for payment\n\nExample:\n\npython <<'EOF'\nimport urllib.request, os, json\ndata = json.dumps({\n    \"contact_name\": \"Acme Corporation\",\n    \"contact_type\": \"customer\",\n    \"company_name\": \"Acme Corp\",\n    \"email\": \"billing@acme.com\",\n    \"phone\": \"+1-555-1234\"\n}).encode()\nreq = urllib.request.Request('https://gateway.maton.ai/zoho-books/books/v3/contacts', data=data, method='POST')\nreq.add_header('Authorization', f'Bearer {os.environ[\"MATON_API_KEY\"]}')\nreq.add_header('Content-Type', 'application/json')\nprint(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))\nEOF\n\n\nResponse:\n\n{\n  \"code\": 0,\n  \"message\": \"The contact has been added.\",\n  \"contact\": {\n    \"contact_id\": \"8527119000000099001\",\n    \"contact_name\": \"Acme Corporation\",\n    \"company_name\": \"Acme Corp\",\n    \"contact_type\": \"customer\",\n    ...\n  }\n}\n\nUpdate Contact\nPUT /zoho-books/books/v3/contacts/{contact_id}\nContent-Type: application/json\n\n{\n  \"contact_name\": \"Updated Name\",\n  \"phone\": \"+1-555-9999\"\n}\n\n\nExample:\n\npython <<'EOF'\nimport urllib.request, os, json\ndata = json.dumps({\n    \"contact_name\": \"Acme Corporation Updated\",\n    \"phone\": \"+1-555-9999\"\n}).encode()\nreq = urllib.request.Request('https://gateway.maton.ai/zoho-books/books/v3/contacts/8527119000000099001', data=data, method='PUT')\nreq.add_header('Authorization', f'Bearer {os.environ[\"MATON_API_KEY\"]}')\nreq.add_header('Content-Type', 'application/json')\nprint(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))\nEOF\n\nDelete Contact\nDELETE /zoho-books/books/v3/contacts/{contact_id}\n\n\nExample:\n\npython <<'EOF'\nimport urllib.request, os, json\nreq = urllib.request.Request('https://gateway.maton.ai/zoho-books/books/v3/contacts/8527119000000099001', method='DELETE')\nreq.add_header('Authorization', f'Bearer {os.environ[\"MATON_API_KEY\"]}')\nprint(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))\nEOF\n\n\nResponse:\n\n{\n  \"code\": 0,\n  \"message\": \"The customer has been deleted.\"\n}\n\nInvoices\nList Invoices\nGET /zoho-books/books/v3/invoices\n\n\nExample:\n\npython <<'EOF'\nimport urllib.request, os, json\nreq = urllib.request.Request('https://gateway.maton.ai/zoho-books/books/v3/invoices')\nreq.add_header('Authorization', f'Bearer {os.environ[\"MATON_API_KEY\"]}')\nprint(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))\nEOF\n\nGet Invoice\nGET /zoho-books/books/v3/invoices/{invoice_id}\n\nCreate Invoice\nPOST /zoho-books/books/v3/invoices\nContent-Type: application/json\n\n{\n  \"customer_id\": \"8527119000000099001\",\n  \"line_items\": [\n    {\n      \"item_id\": \"8527119000000100001\",\n      \"quantity\": 1,\n      \"rate\": 100.00\n    }\n  ]\n}\n\n\nRequired Fields:\n\ncustomer_id - Customer identifier\nline_items - Array of items with item_id or manual entry\n\nOptional Fields:\n\ninvoice_number - Auto-generated if not specified\ndate - Invoice date (yyyy-mm-dd format)\ndue_date - Payment due date\ndiscount - Percentage or fixed amount\npayment_terms - Days until due\nUpdate Invoice\nPUT /zoho-books/books/v3/invoices/{invoice_id}\n\nDelete Invoice\nDELETE /zoho-books/books/v3/invoices/{invoice_id}\n\nInvoice Actions\n# Mark as sent\nPOST /zoho-books/books/v3/invoices/{invoice_id}/status/sent\n\n# Void invoice\nPOST /zoho-books/books/v3/invoices/{invoice_id}/status/void\n\n# Email invoice\nPOST /zoho-books/books/v3/invoices/{invoice_id}/email\n\nBills\nList Bills\nGET /zoho-books/books/v3/bills\n\n\nExample:\n\npython <<'EOF'\nimport urllib.request, os, json\nreq = urllib.request.Request('https://gateway.maton.ai/zoho-books/books/v3/bills')\nreq.add_header('Authorization', f'Bearer {os.environ[\"MATON_API_KEY\"]}')\nprint(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))\nEOF\n\nCreate Bill\nPOST /zoho-books/books/v3/bills\nContent-Type: application/json\n\n{\n  \"vendor_id\": \"8527119000000099002\",\n  \"bill_number\": \"BILL-001\",\n  \"date\": \"2026-02-06\",\n  \"line_items\": [\n    {\n      \"account_id\": \"8527119000000100002\",\n      \"description\": \"Office Supplies\",\n      \"amount\": 150.00\n    }\n  ]\n}\n\n\nRequired Fields:\n\nvendor_id - Vendor identifier\nbill_number - Unique bill number\ndate - Bill date (yyyy-mm-dd)\nUpdate Bill\nPUT /zoho-books/books/v3/bills/{bill_id}\n\nDelete Bill\nDELETE /zoho-books/books/v3/bills/{bill_id}\n\nExpenses\nList Expenses\nGET /zoho-books/books/v3/expenses\n\n\nExample:\n\npython <<'EOF'\nimport urllib.request, os, json\nreq = urllib.request.Request('https://gateway.maton.ai/zoho-books/books/v3/expenses')\nreq.add_header('Authorization', f'Bearer {os.environ[\"MATON_API_KEY\"]}')\nprint(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))\nEOF\n\nCreate Expense\nPOST /zoho-books/books/v3/expenses\nContent-Type: application/json\n\n{\n  \"account_id\": \"8527119000000100003\",\n  \"date\": \"2026-02-06\",\n  \"amount\": 75.50,\n  \"paid_through_account_id\": \"8527119000000100004\",\n  \"description\": \"Business lunch\"\n}\n\n\nRequired Fields:\n\naccount_id - Expense account ID\ndate - Expense date (yyyy-mm-dd)\namount - Expense amount\npaid_through_account_id - Payment account ID\n\nOptional Fields:\n\ndescription - Expense details\ncustomer_id - Billable customer ID\nis_billable - Boolean for billable expenses\nproject_id - Associated project\nUpdate Expense\nPUT /zoho-books/books/v3/expenses/{expense_id}\n\nDelete Expense\nDELETE /zoho-books/books/v3/expenses/{expense_id}\n\nSales Orders\nList Sales Orders\nGET /zoho-books/books/v3/salesorders\n\nCreate Sales Order\nPOST /zoho-books/books/v3/salesorders\n\nPurchase Orders\nList Purchase Orders\nGET /zoho-books/books/v3/purchaseorders\n\nCreate Purchase Order\nPOST /zoho-books/books/v3/purchaseorders\n\nCredit Notes\nList Credit Notes\nGET /zoho-books/books/v3/creditnotes\n\nRecurring Invoices\nList Recurring Invoices\nGET /zoho-books/books/v3/recurringinvoices\n\nRecurring Bills\nList Recurring Bills\nGET /zoho-books/books/v3/recurringbills\n\nPagination\n\nZoho Books uses page-based pagination:\n\nGET /zoho-books/books/v3/contacts?page=1&per_page=50\n\n\nResponse includes pagination info in page_context:\n\n{\n  \"code\": 0,\n  \"message\": \"success\",\n  \"contacts\": [...],\n  \"page_context\": {\n    \"page\": 1,\n    \"per_page\": 50,\n    \"has_more_page\": true,\n    \"sort_column\": \"contact_name\",\n    \"sort_order\": \"A\"\n  }\n}\n\n\nContinue fetching while has_more_page is true, incrementing page each time.\n\nCode Examples\nJavaScript\nconst response = await fetch(\n  'https://gateway.maton.ai/zoho-books/books/v3/contacts',\n  {\n    headers: {\n      'Authorization': `Bearer ${process.env.MATON_API_KEY}`\n    }\n  }\n);\nconst data = await response.json();\n\nPython\nimport os\nimport requests\n\nresponse = requests.get(\n    'https://gateway.maton.ai/zoho-books/books/v3/contacts',\n    headers={'Authorization': f'Bearer {os.environ[\"MATON_API_KEY\"]}'}\n)\ndata = response.json()\n\nNotes\nAll successful responses have code: 0 and a message field\nDates should be in yyyy-mm-dd format\nContact types are customer or vendor\nSome modules (items, chart of accounts, bank accounts, projects) may require additional OAuth scopes. If you receive a scope error, contact Maton support at support@maton.ai with the specific operations/APIs you need and your use-case\nRate limits: 100 requests/minute per organization\nDaily limits vary by plan: Free (1,000), Standard (2,000), Professional (5,000), Paid (10,000)\nIMPORTANT: When using curl commands, use curl -g when URLs contain brackets to disable glob parsing\nIMPORTANT: When piping curl output to jq or other commands, environment variables like $MATON_API_KEY may not expand correctly in some shell environments\nError Handling\nStatus\tMeaning\n400\tMissing Zoho Books connection or invalid request\n401\tInvalid or missing Maton API key, or OAuth scope mismatch\n404\tResource not found\n429\tRate limited\n4xx/5xx\tPassthrough error from Zoho Books API\nCommon Error Codes\nCode\tDescription\n0\tSuccess\n57\tNot authorized (OAuth scope mismatch)\n1\tInvalid value\n2\tMandatory field missing\n3\tResource does not exist\n5\tInvalid URL\nTroubleshooting: API Key Issues\nCheck that the MATON_API_KEY environment variable is set:\necho $MATON_API_KEY\n\nVerify the API key is valid by listing connections:\npython <<'EOF'\nimport urllib.request, os, json\nreq = urllib.request.Request('https://ctrl.maton.ai/connections')\nreq.add_header('Authorization', f'Bearer {os.environ[\"MATON_API_KEY\"]}')\nprint(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))\nEOF\n\nTroubleshooting: Invalid App Name\nEnsure your URL path starts with zoho-books. For example:\nCorrect: https://gateway.maton.ai/zoho-books/books/v3/contacts\nIncorrect: https://gateway.maton.ai/books/v3/contacts\nResources\nZoho Books API v3 Introduction\nZoho Books Invoices API\nZoho Books Contacts API\nZoho Books Bills API\nZoho Books Expenses API\nMaton Community\nMaton Support"
  },
  "trust": {
    "sourceLabel": "tencent",
    "provenanceUrl": "https://clawhub.ai/byungkyu/zoho-books",
    "publisherUrl": "https://clawhub.ai/byungkyu/zoho-books",
    "owner": "byungkyu",
    "version": "1.0.2",
    "license": null,
    "verificationStatus": "Indexed source record"
  },
  "links": {
    "detailUrl": "https://openagent3.xyz/skills/zoho-books",
    "downloadUrl": "https://openagent3.xyz/downloads/zoho-books",
    "agentUrl": "https://openagent3.xyz/skills/zoho-books/agent",
    "manifestUrl": "https://openagent3.xyz/skills/zoho-books/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/zoho-books/agent.md"
  }
}