Create Customer
create_customerCreate a new Razorpay customer record with name, email, phone, and notes, and control duplicate handling by returning an existing customer or throwing an error.
Instructions
Create a new customer in Razorpay.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"name": "<name>"
},
"name": "create_customer"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Customer full name | |
| No | Customer email address | ||
| notes | No | ||
| contact | No | Customer phone number with country code e.g. +919876543210 | |
| fail_existing | No | 0 = return existing customer if duplicate, 1 = throw error | 1 |