DAIBOLA

sedamo API status codes

The sedamo API sends back a status code in the field “status”, which can contain:

  • status = ok: No error occurred, the requested data are in the other fields.
  • status = warning: The request could not be processed as intended. A description is given in the field “message”.
  • status = error: An error occurred, the request could not be processed. The description of the error is in the field “message”.

Examples:

After requesting an address:

{
    "status": "error",
    "message": "no access credit left"
}

After checking the current credit:

{
    "status": "ok",
    "access_credit": "0",
    "lastchanged": "1989-11-09 20:20:00"
}

After requesting the address linked to an e-mail address:

{
    "status": "warning",
    "message": "e-mail not registered"
}

The e-mail address is valid, and the request was well-formed. Yet no data has been entered for the e-mail address requested.

Back to sedamo API start page