payoutMethods.get
Retrieve a specific payout method by its ID to access banking details or payment information for processing transactions within the Ryft MCP server.
Instructions
Get a Ryft payout method by id.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| accountId | Yes | ||
| payoutMethodId | Yes |
Implementation Reference
- src/tools/payout-methods.ts:66-74 (handler)The registration and implementation of the 'payoutMethods.get' MCP tool, which retrieves a payout method from the Ryft API.
registerTool( 'payoutMethods.get', 'Get a Ryft payout method by id.', payoutMethodTargetSchema.shape, async (args) => { const { accountId, payoutMethodId } = payoutMethodTargetSchema.parse(args); return client.get(`/accounts/${accountId}/payout-methods/${payoutMethodId}`); }, ); - src/tools/payout-methods.ts:31-34 (schema)The Zod schema defining the input requirements for 'payoutMethods.get'.
const payoutMethodTargetSchema = z.object({ accountId: z.string().min(1), payoutMethodId: z.string().min(1), });