Error Handling

ZignSec´s REST apis have a general return object format that includes an errors field.
This field contains an array of error objects, each of which has two fields, code and description.

Example of a returned error:

      "description":"1637217431 is an invalid Danish CPR Number."


Missing Mandatory Parameters in REST Calls

Normally, many fields can be left out from an object, which equates to setting the field to null.

However if an whole object is left out or is set to null, or alternatively all the fields in an object are left out then you will receiv a missing parameter exception. These messages can be a bit different for the respecitve service calls.

Example of a Missing Data Response:

    "code":"Internal Exception",
    "description":"ComputeTotalScore - second element in comparison is missing"}]

Error Codes

The following is a list of error codes that may be generated by the ZignSec API

INVALID_PERSONALNUMBER RFU: Reserved for Future Use. Invalid Personal number, for example missing or bad format.
INVALID_DATEOFBIRTH Invalid Date of birth, for example missing
INVALID_ADDRESS Invalid address
MISSING_CONFIG Your account has a missing config, contact ZignSec for help.