The Conferma API will return an error response body containing additional error details. The following is an example error response:

{
  "errorCode": "error_code",
  "message": "error_description",
  "details": [ 
  {
    "field": "field_name",
    "issue": "problem_with_field"
  }]
}

Validation Errors

For validation errors, the API returns the HTTP 400 Bad Request status code.

To prevent validation errors, ensure that the parameters are the right type and conform to these constraints:

Validation TypeDescription
Character LimitNames, addresses, references, labels etc. all have maximum character limits.
Character SetsAll String input types have an applied validation group, restricting the permitted character sets.
NumericAmount, percentages and limits must use non-negative numeric values.
RequiredMust be included in the request. For example, when you create a new card deployment, you must provide an amount.
RangeDates and numeric values may have a minimum or maximum value.

Authentication Errors

The API will return the HTTP 401 Unauthorized status code for authentication errors.

Access token related issues often cause authentication errors. Ensure the access token is present, valid and not expired.