error cases for this SEQ-case-update: Update a case API

Options

Hi @Mehran.Ahmed Khan,

we are using SEQ-case-update: Update a case for updating the existing case. In that I have received

[

{

"error": "SECONDARY_FIELDS_NOT_ALLOWED",

"cause": "Provided secondary fields must be compatible with the used entity type and provider type. Available secondary fields for each pair of provider type and entity type are provided in the group's case template."

}

]

Could you please share the details for this error.

Best Answer

  • Mehran Khan
    Answer ✓

    @Ravi.muniram1

    Hi,

    So there are 2 observations that I have done with your issue:

    1. Your case was initially created by selecting entityType as Individual with the secondary fields for Individuals and in the update API calls you are trying to update it to Organisation with the secondary fields for Organisation which I believe is not possible, which is why you're getting an error. Please ensure you use the entityType "ORGANISATION" during the initial screening itself when you screen any Organisations in World-Check One and use entityType "INDIVIDUAL" when you want to screen Individuals.

    2. Your payload for updating a case is incorrect, you will have to just pass caseId in the payload and not the caseSystemId, the correct payload would look like below keeping in mind the changes I have suggested in point 1.

    Hope this helps, let me know if you need any further information.

    {
        "secondaryFields": [{
            "typeId": "SFCT_6",
            "value": "IND"
        }],
        "entityType": "ORGANISATION",
        "groupId": "5jb7eqa1yzfi1fkixlks06n2k",
        "caseId": "0055010027",
        "providerTypes": ["WATCHLIST"],
        "name": "ABC Company Company"
    }

Answers

  • @Ravi.muniram1


    To investigate this further please share the case system Id of the case that you are trying to update and also the payload for the "update a case" API that is failing with the error.



  • Hi @Mehran Khan

    please find the below details.

    {"caseSystemId":"5jb7ve3g7pv01fl3md24lux7u","secondaryFields":[{"typeId":"SFCT_6","value":"IND"}],"entityType":"ORGANISATION","groupId":"5jb7eqa1yzfi1fkixlks06n2k","caseId":"0055010027","providerTypes":["WATCHLIST"],"name":"ABC Company Company"}