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?

Best Answer

  • @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.

    image

    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