Contact Error Codes

RazorpayX Contacts Error Codes. Understand why they occur and the steps to resolve them.


When firing

, you might run into errors for various reasons. These error codes are returned in an error body, which you can use to understand the reason for the error and the steps to resolve it.

Here is an example of how an error code appears when any Contact API fails.

code

string Not applicable for Error Codes. The value is displayed to maintain consistency of the error object.

description

string A description for the error. For example, The name field is required..

source

string Possible value is business. The error can be fixed from your end.

step

string Not applicable for API Error Codes. The value is displayed to maintain consistency of the error object.

reason

string The error reason. For example, input_validation_failed.

metadata

Null Value Not applicable for API Error Codes. The value displayed to maintain consistency of the error object.

field

The Contact details in the

such as name, email, type and so on.

The below table lists the error reasons and the explanation for why they occurred. Check how to resolve them using the troubleshooting steps mentioned against the respective error.

Error DescriptionNext Steps
The name field is required.Occurs when there is a syntax error in the request body. Enter the details in the recommended format as per the .
The name field is invalid.Occurs when there are special characters used in the request body. Enter details as per the format recommended for request.
Invalid type: contact_typeA is invalid. Occurs when:
  • 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.
Enter the correct contact type in the request body. You cannot create new contact types via API. You must create them via the .
K9MbmNoebKU6S is not a valid id.Occurs when contact id entered in the request body is invalid/does not exist. Enter the correct Contact ID. You can find the Contact ID:

Was this page helpful?