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
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/siigo_mcp/tools/reference.py:20-27 (handler)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")
- src/siigo_mcp/server.py:110-110 (registration)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
- src/siigo_mcp/tools/discovery.py:74-74 (registration)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"},