Hello Team,
I've been exploring the World Check One API for sanction screening in the test environment. Thus far, I've successfully authenticated and connected to several endpoints, including those listed below:
- Step 1: Select an endpoint - /v2/groups
- Step 2: Choose a tool for your request - made requests to REST endpoints
- Step 3: Send your request and review your response - /v2/groups returned a status of 200
Currently, I'm attempting to connect to the cases/screeningRequest endpoint, but I'm encountering some challenges. The API is responding with a timeout issue, even though I have the timeout set to 30 seconds. When I remove the timeout parameter, I receive the response "Status: 0; Message: Empty reply from server".
Below is the JSON I'm sending. The same JSON works fine in POSTMAN:
{"groupId": "MY-GROUP-ID","entityType": "ORGANISATION","caseId": "","providerTypes": ["WATCHLIST"],"caseScreeningState": {"WATCHLIST": "INITIAL"},"name": "Apple", "nameTransposition": false,"secondaryFields": [],"customFields": [] }
I'm using PHP, and I've attached my sample code.
Has anyone else experienced this issue before or could one point me to the section in my code i need to fix?