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

Overview |  Quickstart |  Documentation |  Downloads

question

Upvotes
Accepted
7 1 0 4

From an existing case, How to pull back the matches that contained only an Exact Match?

A client has already processed a Case via the WC1 API and they now want to pull back the matches that contained only an Exact Match to be maintained in their internal system, specifically where matchStregtn is equal to EXACT

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
3.1k 16 7 7

Hi @Eduardo C.,

The endpoint cases/{ {case-system-id}}/results returns an array of matches.

To Test a return result array...in Postman edit the tests in SEQ-5b and add:

tests["Status code is 200"] = responseCode.code === 200;
var Matches = JSON.parse(responseBody);
for (var i = 0; Matches[i] ;i++){
   if ( Matches[i].matchStrength === "EXACT"){
       tests["EXACT Match" + i] = Matches[i].matchStrength === "EXACT";
   }
}

Here's the output of a sample test...with only 1 EXACT match:

In this example the 2nd element of the array has an EXACT match.

Hope this helps,

Brian


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
7 1 0 4

Thanks a lot!

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