For a deeper look into our World Check One API, look into:

Overview |  Quickstart |  Documentation |  Downloads

question

Upvotes
Accepted
30 3 2 2

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.

world-checkworld-check-one
icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 5.0 MiB each and 10.0 MiB total.

Upvotes
Accepted
30 3 2 2

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?

icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 5.0 MiB each and 10.0 MiB total.

@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.

Upvotes
548 1 1 1

@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?

icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 5.0 MiB each and 10.0 MiB total.

Click below to post an Idea Post Idea