Get world-check profile result code and values

About the WC1 call for "SEQ-case-investigate-world-check-profile: Get a World-Check profile", what is the error expected when passing an invalid id? Should it be 404, 500 or other value? In my tests, the value 500 is being returned. Any help is appretiated.

Best Answer

  • henrique.hissataka
    Answer ✓

    Thanks for the explanation.

    These are the values and its returns:

    e_tr_wci_6365553_111: response 500

    e_tr_wci_6365553111: response 404

    e_tr_wci_6365553: response 200

    So it looks like that only items in the format e_tr_wci_[999999999] are answered with 404. If there is an alphabetical or other symbol, then the return is a generic error like 500. Is my understanding correct?

Answers

  • @henrique.hissataka,

    If you are passing a profile which has been deleted, then the ideal response is - 404.

    Can you please let me know the profile Id which you are passing when you receive 500 response code?

  • @henrique.hissataka ,

    Thanks for the details.

    e_tr_wci_6365553_111: response 500 : The format which you are using '_111' is an invalid format, so the server is unable to process it and returns error 500.

    e_tr_wci_6365553111: response 404 : The reason you are getting Error 404 is because, the profile does not exist in the database.

    e_tr_wci_6365553: response 200 :Response code 200 is a successful response and will return the details of the profile in the response of the API call.

    The accepted format of an individual profile is - e_tr_wci_XXXXXX

    Hope this clarifies your concern.