Skip to main content
POST
Available in🇲🇾 Malaysia
RazorpayX payouts in Malaysia are available on request. RazorpayX is not enabled on Razorpay Curlec accounts by default. To enquire about RazorpayX for your business, contact our Support team.
Use this endpoint to create a new contact.
  • A new contact is created if any combination of the following details is unique: name, email, contact, type and reference_id.
  • If all the above details match the details of an existing contact, the API returns details of the existing contact.
Handy TipsYou do not need this endpoint to make a payout. A composite payout creates the contact from the fund_account.contact details that you send in the payout request.

Request Parameters

string
required
The contact’s name. This field is case-sensitive. A minimum of 3 characters and a maximum of 50 characters are allowed. Name cannot end with a special character, except .. Supported characters: a-z, A-Z, 0-9, space, ’, -, _, /, (, ) and .. For example, Siti Aminah.
string
The contact’s email address. For example, siti.aminah@example.com.
string
The contact’s phone number. For example, +60123456789.
string
Maximum 40 characters. Classification for the contact. For example, vendor. The following classifications are available by default:
  • vendor
  • customer
  • employee
  • self

You can create additional classifications on the Dashboard and then use them in APIs. You cannot create new classifications using the API.
string
Maximum 40 characters. A user-entered reference for the contact. For example, Acme Contact ID 12345.
object
Key-value pair that can be used to store additional information about the entity. Maximum 15 key-value pairs, 256 characters (maximum) each. For example, "note_key": "Beam me up Scotty".

Response Parameters

string
The unique identifier linked to the contact. For example, cont_F681qmU11CfPDl.
string
The entity being created. Here, it is contact.
string
The contact’s name. For example, Siti Aminah.
string
The contact’s phone number. For example, +60123456789.
string
The contact’s email address. For example, siti.aminah@example.com.
string
A classification for the contact. For example, vendor.
string
A user-entered reference for the contact. For example, Acme Contact ID 12345.
string
The batch the contact belongs to, if it was created as part of a batch. Otherwise, it is null.
boolean
Possible values:
  • true (default): active
  • false: inactive
object
Key-value pair that can be used to store additional information about the entity. Maximum 15 key-value pairs, 256 characters (maximum) each. For example, "note_key": "Beam me up Scotty".
integer
Timestamp, in Unix, when the contact was created. For example, 1795089601.

Errors

Code: 4xxThe name field is missing in the request body.Solution: Enter the details in the recommended format as per the request body.
Code: 4xxThere are special characters used in the name field.Solution: Enter details as per the format recommended for the name field in the Create a Contact request.
Code: 4xx
  • There are special characters in the type field.
  • Casing does not match as per the type. type is case-sensitive.
  • Contact type sent in the request does not match the types present in the Dashboard.
Solution: Enter the correct contact type in the request body. You cannot create new contact types using the API. You must create them on the RazorpayX Dashboard.
Last modified on December 1, 2026