HSBC - Bad Request /v1/cases

Options

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.

Best Answer

  • brian.bourgault
    Answer ✓

    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"
    }
    ]