get_payment
Retrieve detailed payment information by ID to track transactions and manage shop financial records within the Shopmonkey system.
Instructions
Get detailed information about a single payment by its ID.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | The payment ID |
Implementation Reference
- src/tools/payments.ts:64-68 (handler)Handler implementation for get_payment.
async get_payment(args) { if (!args.id) return { content: [{ type: 'text', text: 'Error: id is required' }], isError: true }; const data = await shopmonkeyRequest<Payment>('GET', `/payment/${sanitizePathParam(String(args.id))}`); return { content: [{ type: 'text', text: JSON.stringify(data, null, 2) }] }; }, - src/tools/payments.ts:22-25 (schema)Definition and schema for get_payment.
name: 'get_payment', description: 'Get detailed information about a single payment by its ID.', inputSchema: { type: 'object' as const, properties: { id: { type: 'string', description: 'The payment ID' } }, required: ['id'] }, },