question

Upvotes
Accepted
3 0 1 2

Can I request the supported AssetStatuses for Search/GovCorpSearch through the API?

We are doing a GovCorpSearch in our application with a hardcoded list of supported AssetStatues that we received roughly a year ago. Now we get a 400 response with the message

{"error":{"message":"Validation Error:\r\n\r\nThe Status REF is not supported; supported values are: CLD, CAN, DFS, RDM, EXC, MAT, FNG, DEF, ISS, LIQ, NAC, PRE, PUT, RPN, RMK, RBM, FDD, REP, RES, TEN, TBC, TBE, TBI, TBP, TBR, TBB, WHN"}}.

Is there any way to request an up to date list of Asset Statuses for the GovCorpSearch through the API to prevent this in the future if changes are made to the supported Asset Statuses. Previously the code REF was accepted.

tick-history-rest-api
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 Answer

· Write an Answer
Upvotes
Accepted
11.3k 25 9 14

Hi @asta,

You can use the GetGovCorpAssetStatuses endpoint to get up to date list of Asset Statuses. Below is the sample.

Request:
GET https://hosted.datascopeapi.reuters.com/RestApi/v1/Search/GetGovCorpAssetStatuses

Response:
{
    "@odata.context": "https://hosted.datascopeapi.reuters.com/RestApi/v1/$metadata#GovCorpAssetStatuses",
    "value": [
        {
            "Code": "CLD",
            "Name": "Called"
        },
        {
            "Code": "CAN",
            "Name": "Cancelled"
        },
        {
            "Code": "DFS",
            "Name": "Defeased"
        },
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.