Skip to main content
Glama

get_payment_types

Retrieve all configured payment methods like cash, credit card, and bank transfer to use their IDs when creating invoices or cash receipts in Siigo.

Instructions

Get all configured payment types/methods.

Returns a list of payment types (cash, credit card, bank transfer, etc.) Use these payment type IDs when creating invoices or cash receipts.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The main handler function for the 'get_payment_types' tool, decorated with @mcp.tool. It retrieves payment types from the Siigo API.
    @mcp.tool async def get_payment_types(ctx: Context) -> list[dict[str, Any]]: """Get all configured payment types/methods. Returns a list of payment types (cash, credit card, bank transfer, etc.) Use these payment type IDs when creating invoices or cash receipts. """ return await get_client(ctx).get("/payment-types")
  • Import of the reference module in server.py, which triggers registration of the @mcp.tool functions including get_payment_types.
    from siigo_mcp.tools import reference # noqa: E402, F401
  • Dynamic registration mapping in lazy loading mode, linking tool name to the handler function.
    "get_payment_types": reference.get_payment_types,
  • Tool index entry used for discovery, providing name, category, and summary for get_tool_schema.
    {"name": "get_payment_types", "category": "reference", "summary": "Get all payment types/methods"},

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/dsfaccini/siigo-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server