{
  "schemaVersion": "1.0",
  "item": {
    "slug": "mercury-payments",
    "name": "Mercury Payments",
    "source": "tencent",
    "type": "skill",
    "category": "开发工具",
    "sourceUrl": "https://clawhub.ai/nathan-deepmm/mercury-payments",
    "canonicalUrl": "https://clawhub.ai/nathan-deepmm/mercury-payments",
    "targetPlatform": "OpenClaw"
  },
  "install": {
    "downloadMode": "redirect",
    "downloadUrl": "/downloads/mercury-payments",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=mercury-payments",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "installMethod": "Manual import",
    "extraction": "Extract archive",
    "prerequisites": [
      "OpenClaw"
    ],
    "packageFormat": "ZIP package",
    "includedAssets": [
      "SKILL.md"
    ],
    "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-04-30T16:55:25.780Z",
      "expiresAt": "2026-05-07T16:55:25.780Z",
      "httpStatus": 200,
      "finalUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=network",
      "contentType": "application/zip",
      "probeMethod": "head",
      "details": {
        "probeUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=network",
        "contentDisposition": "attachment; filename=\"network-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/mercury-payments"
    },
    "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/mercury-payments",
    "agentPageUrl": "https://openagent3.xyz/skills/mercury-payments/agent",
    "manifestUrl": "https://openagent3.xyz/skills/mercury-payments/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/mercury-payments/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": "Overview",
        "body": "Pay invoices via Mercury bank API, notify Zeni (bookkeeper) and the vendor, and always attach the invoice PDF."
      },
      {
        "title": "Prerequisites",
        "body": "Mercury API token (write access): $MERCURY_API_TOKEN or pass show <vault-path>\nAuth: Authorization: Bearer <token> (Basic auth also works: token: base64)\nBase URL: https://api.mercury.com/api/v1"
      },
      {
        "title": "Accounts",
        "body": "Discover account IDs dynamically (do not hardcode organization-specific IDs):\n\ncurl -s -H \"Authorization: Bearer $TOKEN\" \"https://api.mercury.com/api/v1/accounts\"\n\nDefault payment account should be confirmed at payment time."
      },
      {
        "title": "Known Recipients",
        "body": "Keep recipient IDs in your own secure records or resolve by recipient name at runtime."
      },
      {
        "title": "1. Get explicit approval",
        "body": "NEVER send money without explicit approval from the authorized operator. Present: amount, recipient, invoice #, account."
      },
      {
        "title": "2. Download the invoice PDF",
        "body": "Find the invoice email, download the attachment to /tmp/."
      },
      {
        "title": "3. Check for existing recipient",
        "body": "curl -s -H \"Authorization: Bearer $TOKEN\" \"https://api.mercury.com/api/v1/recipients\" | python3 -c \"...\""
      },
      {
        "title": "4. Create recipient if needed",
        "body": "curl -s -X POST \"https://api.mercury.com/api/v1/recipients\" \\\n  -H \"Authorization: Bearer $TOKEN\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\n    \"name\": \"...\",\n    \"emails\": [\"...\"],\n    \"defaultPaymentMethod\": \"ach\",\n    \"electronicRoutingInfo\": {\n      \"accountNumber\": \"...\",\n      \"routingNumber\": \"...\",\n      \"electronicAccountType\": \"businessChecking\",\n      \"address\": { \"address1\": \"...\", \"city\": \"...\", \"region\": \"...\", \"postalCode\": \"...\", \"country\": \"US\" }\n    },\n    \"defaultAddress\": { ... }\n  }'"
      },
      {
        "title": "5. Send payment",
        "body": "ACH payment:\n\ncurl -s -X POST \"https://api.mercury.com/api/v1/account/{accountId}/transactions\" \\\n  -H \"Authorization: Bearer $TOKEN\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\n    \"recipientId\": \"...\",\n    \"amount\": 533.13,\n    \"paymentMethod\": \"ach\",\n    \"note\": \"INV123 - Vendor - Period\",\n    \"idempotencyKey\": \"unique-key-here\"\n  }'\n\nDomestic wire payment:\n\ncurl -s -X POST \"https://api.mercury.com/api/v1/account/{accountId}/transactions\" \\\n  -H \"Authorization: Bearer $TOKEN\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\n    \"recipientId\": \"...\",\n    \"amount\": 1080.00,\n    \"paymentMethod\": \"domesticWire\",\n    \"purpose\": {\"simple\": {\"category\": \"vendor\", \"additionalInfo\": \"Invoice TRC37332 TRACE Data\"}},\n    \"note\": \"INV-001 - Vendor - Jan 2026\",\n    \"idempotencyKey\": \"unique-key-here\"\n  }'\n\nWire purpose is required. Format: {\"simple\": {\"category\": \"<cat>\", \"additionalInfo\": \"<desc>\"}}\nCategories: employee, landlord, vendor, contractor, subsidiary, transferToMyExternalAccount, familyMemberOrFriend, forGoodsOrServices, angelInvestment, savingsOrInvestments, expenses, travel, other"
      },
      {
        "title": "6. Email bookkeeper (always)",
        "body": "Send to your bookkeeping inbox (e.g., bookkeeping@example.com) with:\n\nSubject: <Vendor> Invoice <number> — Paid\nBody: amount, method, estimated delivery\nAttach the invoice PDF"
      },
      {
        "title": "7. Email vendor (always)",
        "body": "Reply in the existing email thread if possible. Include:\n\nConfirmation of payment with amount\nAttach the invoice PDF\nEstimated delivery date"
      },
      {
        "title": "Internal Transfers (Between Mercury Accounts)",
        "body": "curl -s -X POST \"https://api.mercury.com/api/v1/transfer\" \\\n  -H \"Authorization: Bearer $TOKEN\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\n    \"sourceAccountId\": \"YOUR_SOURCE_ACCOUNT_ID\",\n    \"destinationAccountId\": \"YOUR_DESTINATION_ACCOUNT_ID\",\n    \"amount\": 465.00,\n    \"idempotencyKey\": \"unique-key-here\"\n  }'\n\nRequired fields: sourceAccountId, destinationAccountId, amount, idempotencyKey.\nTransfers post instantly. Response contains both creditTransaction and debitTransaction."
      },
      {
        "title": "Querying Transactions",
        "body": "# Recent (default ~30 days)\ncurl -s -H \"Authorization: Bearer $TOKEN\" \"https://api.mercury.com/api/v1/account/{id}/transactions?limit=500\"\n\n# Date range (goes further back)\ncurl -s -H \"Authorization: Bearer $TOKEN\" \"https://api.mercury.com/api/v1/account/{id}/transactions?start=2025-12-01&end=2026-01-18&limit=500\"\n\nNote: Without date params, API only returns ~30 days. Use start/end to go further back."
      },
      {
        "title": "Idempotency Keys",
        "body": "Use descriptive keys: {vendor}-{invoice}-{period} (e.g., finra-trc37332-nov2025)"
      },
      {
        "title": "Checklist",
        "body": "Explicit approval received from authorized operator\n Invoice PDF downloaded\n Recipient exists (or created)\n Payment sent with correct amount, method, and note\n Zeni emailed with invoice attached\n Vendor emailed with invoice attached\n Payment logged in daily memory file"
      }
    ],
    "body": "Mercury Payments Skill\nOverview\n\nPay invoices via Mercury bank API, notify Zeni (bookkeeper) and the vendor, and always attach the invoice PDF.\n\nPrerequisites\nMercury API token (write access): $MERCURY_API_TOKEN or pass show <vault-path>\nAuth: Authorization: Bearer <token> (Basic auth also works: token: base64)\nBase URL: https://api.mercury.com/api/v1\nAccounts\n\nDiscover account IDs dynamically (do not hardcode organization-specific IDs):\n\ncurl -s -H \"Authorization: Bearer $TOKEN\" \"https://api.mercury.com/api/v1/accounts\"\n\n\nDefault payment account should be confirmed at payment time.\n\nKnown Recipients\n\nKeep recipient IDs in your own secure records or resolve by recipient name at runtime.\n\nPayment Flow\n1. Get explicit approval\n\nNEVER send money without explicit approval from the authorized operator. Present: amount, recipient, invoice #, account.\n\n2. Download the invoice PDF\n\nFind the invoice email, download the attachment to /tmp/.\n\n3. Check for existing recipient\ncurl -s -H \"Authorization: Bearer $TOKEN\" \"https://api.mercury.com/api/v1/recipients\" | python3 -c \"...\"\n\n4. Create recipient if needed\ncurl -s -X POST \"https://api.mercury.com/api/v1/recipients\" \\\n  -H \"Authorization: Bearer $TOKEN\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\n    \"name\": \"...\",\n    \"emails\": [\"...\"],\n    \"defaultPaymentMethod\": \"ach\",\n    \"electronicRoutingInfo\": {\n      \"accountNumber\": \"...\",\n      \"routingNumber\": \"...\",\n      \"electronicAccountType\": \"businessChecking\",\n      \"address\": { \"address1\": \"...\", \"city\": \"...\", \"region\": \"...\", \"postalCode\": \"...\", \"country\": \"US\" }\n    },\n    \"defaultAddress\": { ... }\n  }'\n\n5. Send payment\n\nACH payment:\n\ncurl -s -X POST \"https://api.mercury.com/api/v1/account/{accountId}/transactions\" \\\n  -H \"Authorization: Bearer $TOKEN\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\n    \"recipientId\": \"...\",\n    \"amount\": 533.13,\n    \"paymentMethod\": \"ach\",\n    \"note\": \"INV123 - Vendor - Period\",\n    \"idempotencyKey\": \"unique-key-here\"\n  }'\n\n\nDomestic wire payment:\n\ncurl -s -X POST \"https://api.mercury.com/api/v1/account/{accountId}/transactions\" \\\n  -H \"Authorization: Bearer $TOKEN\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\n    \"recipientId\": \"...\",\n    \"amount\": 1080.00,\n    \"paymentMethod\": \"domesticWire\",\n    \"purpose\": {\"simple\": {\"category\": \"vendor\", \"additionalInfo\": \"Invoice TRC37332 TRACE Data\"}},\n    \"note\": \"INV-001 - Vendor - Jan 2026\",\n    \"idempotencyKey\": \"unique-key-here\"\n  }'\n\n\nWire purpose is required. Format: {\"simple\": {\"category\": \"<cat>\", \"additionalInfo\": \"<desc>\"}} Categories: employee, landlord, vendor, contractor, subsidiary, transferToMyExternalAccount, familyMemberOrFriend, forGoodsOrServices, angelInvestment, savingsOrInvestments, expenses, travel, other\n\n6. Email bookkeeper (always)\n\nSend to your bookkeeping inbox (e.g., bookkeeping@example.com) with:\n\nSubject: <Vendor> Invoice <number> — Paid\nBody: amount, method, estimated delivery\nAttach the invoice PDF\n7. Email vendor (always)\n\nReply in the existing email thread if possible. Include:\n\nConfirmation of payment with amount\nAttach the invoice PDF\nEstimated delivery date\nInternal Transfers (Between Mercury Accounts)\ncurl -s -X POST \"https://api.mercury.com/api/v1/transfer\" \\\n  -H \"Authorization: Bearer $TOKEN\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\n    \"sourceAccountId\": \"YOUR_SOURCE_ACCOUNT_ID\",\n    \"destinationAccountId\": \"YOUR_DESTINATION_ACCOUNT_ID\",\n    \"amount\": 465.00,\n    \"idempotencyKey\": \"unique-key-here\"\n  }'\n\n\nRequired fields: sourceAccountId, destinationAccountId, amount, idempotencyKey. Transfers post instantly. Response contains both creditTransaction and debitTransaction.\n\nQuerying Transactions\n# Recent (default ~30 days)\ncurl -s -H \"Authorization: Bearer $TOKEN\" \"https://api.mercury.com/api/v1/account/{id}/transactions?limit=500\"\n\n# Date range (goes further back)\ncurl -s -H \"Authorization: Bearer $TOKEN\" \"https://api.mercury.com/api/v1/account/{id}/transactions?start=2025-12-01&end=2026-01-18&limit=500\"\n\n\nNote: Without date params, API only returns ~30 days. Use start/end to go further back.\n\nIdempotency Keys\n\nUse descriptive keys: {vendor}-{invoice}-{period} (e.g., finra-trc37332-nov2025)\n\nChecklist\n Explicit approval received from authorized operator\n Invoice PDF downloaded\n Recipient exists (or created)\n Payment sent with correct amount, method, and note\n Zeni emailed with invoice attached\n Vendor emailed with invoice attached\n Payment logged in daily memory file"
  },
  "trust": {
    "sourceLabel": "tencent",
    "provenanceUrl": "https://clawhub.ai/nathan-deepmm/mercury-payments",
    "publisherUrl": "https://clawhub.ai/nathan-deepmm/mercury-payments",
    "owner": "nathan-deepmm",
    "version": "1.0.1",
    "license": null,
    "verificationStatus": "Indexed source record"
  },
  "links": {
    "detailUrl": "https://openagent3.xyz/skills/mercury-payments",
    "downloadUrl": "https://openagent3.xyz/downloads/mercury-payments",
    "agentUrl": "https://openagent3.xyz/skills/mercury-payments/agent",
    "manifestUrl": "https://openagent3.xyz/skills/mercury-payments/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/mercury-payments/agent.md"
  }
}