Hi
I am developing integration for CircleK using Oracle SOA technology.
I have found, that API: https://selectapi.datascope.refinitiv.com/RestApi/v1/Extractions/ExtractWithNotes is sensitive to field order.
This is working:
{
"ExtractionRequest":
{ "@odata.type": "#DataScope.Select.Api.Extractions.ExtractionRequests.EndOfDayPricingExtractionRequest",
"ContentFieldNames": [
"Instrument ID",
"Instrument ID Type",
"Currency Code",
"High Price",
"Mid Price",
"Open Price",
"Trade Date",
"Universal Close Price",
"Close Price",
"Official Close Price",
"Previous Close Price",
"Exchange Code",
"Usage Instrument Type"
],
"IdentifierList": {
"@odata.type": "#DataScope.Select.Api.Extractions.ExtractionRequests.InstrumentIdentifierList",
"InstrumentIdentifiers": [
{ "Identifier": "PLNFIX=ST", "IdentifierType": "Ric" }
]
},
"Condition": null
}
}
But this not - gives HTTP 400:
{
"ExtractionRequest": {
"Condition": null,
"ContentFieldNames": [
"Instrument ID",
"Instrument ID Type",
"Currency Code",
"High Price",
"Mid Price",
"Open Price",
"Trade Date",
"Universal Close Price",
"Close Price",
"Official Close Price",
"Previous Close Price",
"Exchange Code",
"Usage Instrument Type"
],
"IdentifierList": {
"InstrumentIdentifiers": [
{
"IdentifierType": "Ric",
"Identifier": "USDFIX=ST"
}
],
"@odata.type": "#DataScope.Select.Api.Extractions.ExtractionRequests.InstrumentIdentifierList"
},
"@odata.type": "#DataScope.Select.Api.Extractions.ExtractionRequests.EndOfDayPricingExtractionRequest"
}
}
According to the REST messages and philosophy, both messages are equivalent.