For a deeper look into our DataScope Select REST API, look into:

Overview |  Quickstart |  Documentation |  Downloads |  Tutorials

question

Upvotes
Accepted
3 1 5 9

How can I reproduce this section of XML Corporate Actions Report Template

  1. I’m trying to create, via Java API Rest, the attached Corporate Actions Report Template (“NEW_FULL_DATA_RTCE_Future_Corax_report_RPT_Definition.xml”, already existing on the Datascope site).


How can I reproduce this section of XML Corporate Actions Report Template?


<AllowEmptyEvents>No</AllowEmptyEvents> ref_error.txt


And this section?


<QueryStart>

<PreviousDays>0</PreviousDays>

</QueryStart>

<QueryEnd>

<AllFutureEvents> </AllFutureEvents>

QueryEnd>

2.

In the attached document (“Ref_JavaCode.docx”) there is the code used to create the Corporate Actions Report Template. This code returns Bad Error (“Ref_error.docx”).

Could you check what we are doing wrong?

dss-rest-apidssdatascope-selectcorporate-actions
ref-error.txt (8.3 KiB)
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

Upvotes
Accepted
47.2k 109 44 60

@Prathibha.Mariyappa

I got the following error when using the attached request in the Postman.

{
    "error": {
        "message": "Validation Error:\r\n\r\nAt least one Corporate Actions event must be selected."
    }
}

Refer to DSS REST API Reference Tree, there are required fields in the request.

After adding those fields in the request, the response returns 201 Created.

    "IncludeCapitalChangeEvents": true,
    "IncludeDividendEvents": true,
    "IncludeEarningsEvents": true,
    "IncludeMergersAndAcquisitionsEvents": true,
    "IncludeNominalValueEvents": true,
    "IncludePublicEquityOfferingsEvents": true,
    "IncludeSharesOutstandingEvents": true,
    "IncludeVotingRightsEvents": true,

I have modified the condition to this:

  "Condition": {
    "IncludeCapitalChangeEvents": true,
    "IncludeDividendEvents": true,
    "IncludeEarningsEvents": true,
    "IncludeMergersAndAcquisitionsEvents": true,
    "IncludeNominalValueEvents": true,
    "IncludePublicEquityOfferingsEvents": true,
    "IncludeSharesOutstandingEvents": true,
    "IncludeVotingRightsEvents": true,
    "CorporateActionsCapitalChangeType": "CapitalChangeExDate",
    "CorporateActionsDividendsType": "DividendExDate",
    "ExcludeDeletedEvents": false,
    "IncludeNullDates": false,
    "ReportDateRangeType": "Range",
    "PreviousDays": 0
      }

The created report template has the following attributes.

      <RangeQuery>
        <QueryStart>
          <PreviousDays>0</PreviousDays>
        </QueryStart>
        <QueryEnd>
          <AllFutureEvents> </AllFutureEvents>
        </QueryEnd>
        <AllowEmptyEvents>No</AllowEmptyEvents>
        <ExcludeDeletedEvents>No</ExcludeDeletedEvents>
      </RangeQuery>

The full request is request.txt


1608525554264.png (42.9 KiB)
request.txt (8.4 KiB)
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.