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

Overview |  Quickstart |  Documentation |  Downloads

question

Upvotes
Accepted
36 0 1 3

500 Error when calling POST /cases/summaries/cursor for Worldcheck One

I am calling "v2/cases/summaries" to get a list of cases. That works ok and returns a cursorId that I then pass to the end point "v2/cases/summaries/cursor" to get the next page of results but it returns a 500 error.

            var postGetCases = "/cases/summaries";
            var postGetCasesSummary = "{\"cursorOptions\": { \"itemsPerPage\": 2}}";


            var cursorId = PostNew(gatewayVersion, gatewayHost, postGetCases, apiKey, apiSecret,postGetCasesSummary);


            var postCursor = "/cases/summaries/cursor";
            var postCursorData = "{\"cursorId\":\""+cursorId+"\"}";


            var updatedCursor = PostNew(gatewayVersion, gatewayHost, postCursor, apiKey, apiSecret, postCursorData);

Is it something I am doing wrong or is that endpoint not currently working?

world-checkworld-check-oneapi
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.

  1. var postCursorData2 = "{\"cursor\":{\"cursorId\":\"" + cursorId + "\"}}";

1 Answer

· Write an Answer
Upvote
Accepted
36 0 1 3

It would appear I have to wrap the cursorId in a cursor and that then works.

var postCursorData2 = "{\"cursor\":{\"cursorId\":\"" + cursorId + "\"}}";
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.