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

Overview |  Quickstart |  Documentation |  Downloads

question

Upvotes
Accepted
18 2 4 6

WCO: Empty Arrays in API Responses

Our dev team have found empty arrays presented in API Responses and have asked if this is the default behaviour where no data is present.

Example: Profile retrieval resulted in an empty 'actions' array - ("actions": [ ],)

Is each field array subject to the same behaviour across the WCO API call responses?

(i.e. presented as an empty array where no underlying data is present).

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

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

Hello @james.russell,

Thank you for your participation in the forum.

Is the reply below satisfactory in resolving your query?

If so please can you click the 'Accept' text next to the appropriate reply. This will guide all community members who have a similar question.

Thanks

-AHS

@james.russell, please be informed that a reply has been verified as correct in answering the question, and has been marked as such. Thanks, AHS

1 Answer

· Write an Answer
Upvotes
Accepted
2.4k 6 5 6

@james.russell

Hi,

Yes, When you look for a profile which doesn't exist or it is unavailable in the WC1 database you will see a 404 Not found and empty response!

Another example would be the synchronous screening request, is there are no matches to the entity being screened you will get an empty result array along with the case Id as the response.

Same holds good when you're checking for the case ID availability if you see a 404 Not found and empty response it means that the case Id doesn't exist and is available to use.\

To sum it up, you will see this behaviour if there is no underlying data present.

Let us know if you need further information!

Regards,

Mehran Khan

icon clock
10 |1500

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

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

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