vaultix_create_payment_link
Generate shareable payment links for Brazilian transactions using PIX or credit cards. Specify amount in cents, add descriptions, set usage limits, and configure redirect URLs after payment completion.
Instructions
Create a shareable payment link. Amount in cents.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| amount | Yes | Amount in cents (minimum 100) | |
| description | No | Link description | |
| payment_methods | No | Allowed methods: pix, credit_card | |
| success_url | No | Redirect URL after payment | |
| max_uses | No | Maximum number of uses |
Implementation Reference
- src/tools/index.ts:560-567 (handler)The core handler logic for the vaultix_create_payment_link tool. It makes a POST request to the Vaultix API's /payment-links endpoint using the provided input arguments via the VaultixClient.case 'vaultix_create_payment_link': return client.post('/payment-links', { amount: args.amount, description: args.description, payment_methods: args.payment_methods, success_url: args.success_url, max_uses: args.max_uses, })
- src/tools/index.ts:315-329 (schema)The schema definition for the vaultix_create_payment_link tool, specifying the name, description, and inputSchema for MCP validation.{ name: 'vaultix_create_payment_link', description: 'Create a shareable payment link. Amount in cents.', inputSchema: { type: 'object', properties: { amount: { type: 'number', description: 'Amount in cents (minimum 100)' }, description: { type: 'string', description: 'Link description' }, payment_methods: { type: 'array', items: { type: 'string' }, description: 'Allowed methods: pix, credit_card' }, success_url: { type: 'string', description: 'Redirect URL after payment' }, max_uses: { type: 'number', description: 'Maximum number of uses' }, }, required: ['amount'], }, },
- src/index.ts:44-46 (registration)Registers the list of tools (including vaultix_create_payment_link) with the MCP server by handling ListToolsRequestSchema.server.setRequestHandler(ListToolsRequestSchema, async () => { return { tools } })