Skip to main content
Glama

subscriptions.getPaymentSessions

Retrieve payment session history for a Ryft subscription to track transactions and manage billing records.

Instructions

List payment sessions for a Ryft subscription.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
idYes
startTimestampNo
endTimestampNo
ascendingNo
limitNo
startsAfterNo

Implementation Reference

  • The registration and handler implementation for the 'subscriptions.getPaymentSessions' tool. It validates the input using the schema and performs a GET request to the Ryft API.
    registerTool(
      'subscriptions.getPaymentSessions',
      'List payment sessions for a Ryft subscription.',
      subscriptionPaymentSessionsSchema.shape,
      async (args) => {
        const parsed = subscriptionPaymentSessionsSchema.parse(args);
        const { id, ...query } = parsed;
        return client.get(`/subscriptions/${id}/payment-sessions`, { query: query as Record<string, QueryValue> });
      },
    );
  • The Zod schema defining the input parameters for the 'subscriptions.getPaymentSessions' tool.
    const subscriptionPaymentSessionsSchema = z.object({
      id: z.string().min(1),
      startTimestamp: z.number().int().optional(),
      endTimestamp: z.number().int().optional(),
      ascending: z.boolean().optional(),
      limit: z.number().int().positive().max(100).optional(),
      startsAfter: z.string().optional(),
    });

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/bkawk/ryft-mcp'

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