Skip to main content
Glama

getAllPayments

Retrieve all payments from the Mews hospitality platform using filters for payment IDs, customer IDs, bill IDs, date ranges, states, and pagination settings.

Instructions

Returns all payments based on filter parameters

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
PaymentIdsNoFilter by specific payment IDs
CustomerIdsNoFilter by customer IDs
BillIdsNoFilter by bill IDs
CreatedUtcNoDate range filter for payment creation
ConsumedUtcNoDate range filter for payment consumption
StatesNoFilter by payment states
LimitationNoPagination settings

Implementation Reference

  • The execute handler function that performs the HTTP request to retrieve payments based on input filters.
    async execute(config: MewsAuthConfig, args: unknown): Promise<ToolResult> { const inputArgs = args as Record<string, unknown>; const requestData = { Limitation: { Count: 100 }, ...inputArgs }; const result = await mewsRequest(config, '/api/connector/v1/payments/getAll', requestData); return { content: [{ type: 'text', text: JSON.stringify(result, null, 2) }] }; }
  • Input schema defining parameters for filtering payments by IDs, dates, states, and pagination.
    inputSchema: { type: 'object', properties: { PaymentIds: { type: 'array', items: { type: 'string' }, description: 'Filter by specific payment IDs', maxItems: 1000 }, CustomerIds: { type: 'array', items: { type: 'string' }, description: 'Filter by customer IDs', maxItems: 1000 }, BillIds: { type: 'array', items: { type: 'string' }, description: 'Filter by bill IDs', maxItems: 1000 }, CreatedUtc: { type: 'object', properties: { StartUtc: { type: 'string', description: 'Start of creation date range (ISO 8601)' }, EndUtc: { type: 'string', description: 'End of creation date range (ISO 8601)' } }, description: 'Date range filter for payment creation' }, ConsumedUtc: { type: 'object', properties: { StartUtc: { type: 'string', description: 'Start of consumption date range (ISO 8601)' }, EndUtc: { type: 'string', description: 'End of consumption date range (ISO 8601)' } }, description: 'Date range filter for payment consumption' }, States: { type: 'array', items: { type: 'string' }, description: 'Filter by payment states' }, Limitation: { type: 'object', properties: { Count: { type: 'number', description: 'Maximum number of payments to return' }, Cursor: { type: 'string', description: 'Pagination cursor for next page' } }, description: 'Pagination settings' } }, additionalProperties: false },
  • Import of the getAllPaymentsTool.
    import { getAllPaymentsTool } from './payments/getAllPayments.js';
  • Inclusion of getAllPaymentsTool in the allTools array for registration.
    getAllPaymentsTool,
  • Tool object definition with name and description.
    export const getAllPaymentsTool: Tool = {

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/code-rabi/mews-mcp'

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