...or json object "
I'm making an http request to the api using the below details but I'm getting the 400 error with the above message.
URI: https://selectapi.datascope.refinitiv.com/RestApi/v1/Extractions/ExtractWithNotes
Headers:
{
"Accept": "application/json; odata.metadata=minimal",
"Authorization": "Token xxxxx",
"Content-Type": "application/json; odata=minimalmetadata; charset=utf-8"
}
Body:
{
"ExtractionRequest": {
"@odata.type": "#DataScope.Select.Api.Extractions.ExtractionRequests.IntradayPricingExtractionRequest",
"ContentFieldNames": [
"RIC",
"Ask Price",
"Asset Type",
"Bid Price",
"Currency Code",
"Exchange Code",
"High Price",
"Instrument ID",
"Instrument ID Type",
"Low Price",
"Open Price",
"Previous Close Date",
"Previous Close Price",
"Security Description",
"Settlement Price",
"Trade Date",
"User Defined Identifier",
"Volume"
],
"IdentifierList": {
"@odata.type": "#DataScope.Select.Api.Extractions.ExtractionRequests.InstrumentIdentifierList",
"InstrumentIdentifiers": [
{
"Identifier": "438516AC0",
"IdentifierType": "Cusip"
},
{
"Identifier": "IBM.N",
"IdentifierType": "Ric"
},
{
"Identifier": "JPYUSD=R",
"IdentifierType": "Ric"
},
{
"Identifier": "USDAUD=R",
"IdentifierType": "Ric"
},
{
"Identifier": "EURGBP=R",
"IdentifierType": "Ric"
},
{
"Identifier": "EURZAR=R",
"IdentifierType": "Ric"
},
{
"Identifier": "ZARUSD=R",
"IdentifierType": "Ric"
},
{
"Identifier": "USDZAR=R",
"IdentifierType": "Ric"
}
]
},
"Condition": { "ScalableCurrency": true }
}
}
Response:
{
"error": {
"message": "Malformed request payload: Syntax error at Line 1, Char 1: expected valid json array or json object "
}
}