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

Overview |  Quickstart |  Documentation |  Downloads

question

Upvotes
Accepted
1 1 2 6

HSBC - Bad Request /v1/cases

Hi, Im trying to invoke the service that generate the case id but I obtain the error "Bad Request".

The message that I sent was:

{

"groupId":"0a3687d0-5b01-139e-96e2-90b9000001ea",

"entityType":"INDIVIDUAL",

"name":"John Doe",

"providerTypes":[

"WATCHLIST"

],

"secondaryFields":[

{

"typeId":"SFCT_1",

"value":"MALE"

},

{

"typeId":"SFCT_6",

"value":"Argentina"

}

]

}

Could you help me please, I think may be the problem is with the "SecondaryFields".

Thank you very much.

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.

1 Answer

Upvote
Accepted
3.1k 16 7 7

Hi @jcgarcia,

If you look at the Postman Collection you'll notice that SEQ-2-c, Save an INDIVIDUAL case uses ISO 3 Character Country Codes (as per the Documentation) and INDIVIDUAL uses Country IDs for INDIVIDUAL not Country of ORGANISATION.

The best way to avoid simple coding errors in your request is to reference the Postman Collection and the Documentation while you code your requests, especially for the first time.

The examples in the Postman Collection have all been tested and are there for you to learn and explore.

Hope this helps,

Brian

   "secondaryFields":[  
      {  
         "typeId":"SFCT_1",
         "value":"MALE"
      },
      {  
         "typeId":"SFCT_2",
         "dateTimeValue": "2016-10-12"
      },
      {  
         "typeId":"SFCT_3",
         "value":"USA"
      },
      {  
         "typeId":"SFCT_4",
         "value":"AUS"
      },
      {  
         "typeId":"SFCT_5",
         "value":"ABW"
      }
   ]
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