customers.create
Create new customer accounts in Ryft by providing email, name, and metadata for financial management and payment processing.
Instructions
Create a Ryft customer.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| Yes | |||
| firstName | No | ||
| lastName | No | ||
| metadata | No |
Implementation Reference
- src/tools/customers.ts:28-33 (registration)Tool registration for 'customers.create', which delegates the actual call to the client.post method in the handler.
registerTool( 'customers.create', 'Create a Ryft customer.', createCustomerSchema.shape, async (args) => client.post('/customers', createCustomerSchema.parse(args)), ); - src/tools/customers.ts:4-9 (schema)Zod schema definition for input validation of the 'customers.create' tool.
const createCustomerSchema = z.object({ email: z.string().email(), firstName: z.string().min(1).optional(), lastName: z.string().min(1).optional(), metadata: z.record(z.string(), z.string()).optional(), });