question

Upvotes
Accepted
64 3 5 7

what's URL I should use to create Corporate Actions Standard ReportTemplate

I try to create a

Corporate Actions Standard ReportTemplate but I got

Bad Request and invalid error from Java or Postman, what URL I should use?

https://hosted.datascopeapi.reuters.com/RestApi/v1/Extractions/CorporateActionsStandardReportTemplate at moment it looks wrong.

{
"@odata.type":"#ThomsonReuters.Dss.Api.Extractions.ReportTemplates.CorporateActionsStandardReportTemplate",
"ShowColumnHeaders":false,
"Name":"test1Name_TTemplate",
"Headers":[

],
"Trailers":[

],
"ContentFields":[
{
"FieldName":"Corporate Actions ID",
"Format":null
},
{
"FieldName":"Corporate Actions Type",
"Format":null
},
{
"FieldName":"Corporate Action Notes",
"Format":null
},
{
"FieldName":"Delete Marker",
"Format":null
},
{
"FieldName":"Event Status",
"Format":null
},
{
"FieldName":"Capital Change Announcement Date",
"Format":null
},
{
"FieldName":"Capital Change Deal Date",
"Format":null
},
{
"FieldName":"Capital Change Ex Date",
"Format":null
},
{
"FieldName":"Effective Date",
"Format":null
},
{
"FieldName":"Capital Change Event Type",
"Format":null
},
{
"FieldName":"Actual Adjustment Factor",
"Format":{
"@odata.type":"#ThomsonReuters.Dss.Api.Extractions.ReportTemplates.ContentFieldNumberFormat",
"DecimalPlaces":12,
"DecimalSeparator":"Period",
"UseLeadingZero":false,
"NegativeSignPosition":"Before",
"UseThousandSeparator":false,
"UseTrailingZero":false
}
},
{
"FieldName":"New Shares Terms",
"Format":null
},
{
"FieldName":"Old Shares Terms",
"Format":null
},
{
"FieldName":"Dividend Pay Date",
"Format":null
},
{
"FieldName":"Dividend Announcement Date",
"Format":null
},
{
"FieldName":"Dividend Ex Date",
"Format":null
},
{
"FieldName":"Dividend Payment Type",
"Format":null
},
{
"FieldName":"Dividend Rate",
"Format":{
"@odata.type":"#ThomsonReuters.Dss.Api.Extractions.ReportTemplates.ContentFieldNumberFormat",
"DecimalPlaces":12,
"DecimalSeparator":"Period",
"UseLeadingZero":false,
"NegativeSignPosition":"Before",
"UseThousandSeparator":false,
"UseTrailingZero":false
}
},
{
"FieldName":"Currency Code",
"Format":null
}
],
"Condition":{
"ReportDateRangeType":"Range",
"QueryStartDate":"2006-01-01T00:00:00.000Z",
"QueryEndDate":"2017-04-27T23:59:59.999Z",
"IncludeInstrumentsWithNoEvents":true,
"IncludeNullDates":false,
"ExcludeDeletedEvents":true,
"IncludeCapitalChangeEvents":true,
"IncludeDividendEvents":true,
"IncludeEarningsEvents":false,
"IncludeMergersAndAcquisitionsEvents":false,
"IncludeNominalValueEvents":false,
"IncludePublicEquityOfferingsEvents":false,
"IncludeSharesOutstandingEvents":false,
"IncludeVotingRightsEvents":false,
"CorporateActionsCapitalChangeType":"CapitalChangeAnnouncementDate",
"CorporateActionsDividendsType":"DividendAnnouncementDate"
}
}

tick-history-rest-api
icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 5.0 MiB each and 10.0 MiB total.

1 Answer

Upvotes
Accepted
11.3k 25 8 13

@bin

The "s" character is missing in your URI. The correct URI is https://hosted.datascopeapi.reuters.com/RestApi/v1/Extractions/CorporateActionsStandardReportTemplates

You can see the URI, other properties and usage examples in the REST API Reference Tree.

I have also tried your message with the correct URI. The message can create Report template properly.

icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 5.0 MiB each and 10.0 MiB total.

Click below to post an Idea Post Idea