Data Type Validation#
Our API employs validators to ensure the correctness of various data types, such as strings, numbers, emails, and more. When validating request parameters, you can expect to receive a response in the following format in case of validation errors:{
"success": false,
"message": "INVALID_OR_INCOMPLETE_PARAMS",
"data": [
{
"param": "identifier",
"message": "TEXT_STRING_EXPECTED"
},
{
"param": "identifier",
"message": "REQUIRED_FIELD"
}
]
}
In this example, the endpoint requires an "identifier" to be provided as a string. If the provided data does not meet the required data type or if the field is missing entirely, the API will respond with the "INVALID_OR_INCOMPLETE_PARAMS" error message and provide details about the specific validation errors encountered, including the parameter name ("param") and an associated error message ("message").Please ensure that your requests include the expected data types and that all required fields are provided to prevent validation errors.Modified at 2025-01-15 02:33:35