Create a Customer

POST https://api.razorpay.com/v1/customers

Set up a new customer through the Create a Customer API. Provide the customer's name, email address, and contact number; the API reply will include a customer_id.

Learn more about the Create a Customer API.

Request Body

{"name"=>"Gaurav Kumar", "email"=>"gaurav.kumar@example.com", "contact"=>"9123456780", "fail_existing"=>"1", "gstin"=>"12ABCDE2356F7GH", "notes"=>{"notes_key_1"=>"Tea, Earl Grey, Hot", "notes_key_2"=>"Tea, Earl Grey… decaf."}}

HEADERS

KeyDatatypeRequiredDescription
Content-Typestring