RS Provisioner API
Products
Get the details of a product
1 min
code examples curl location globoff 'https //provisioning rs int {environment} korfinancial com/products/{productidentifier}' \\ \ header 'accept application/json' \\ \ header 'content type application/json'var myheaders = new headers(); myheaders append("accept", "application/json"); myheaders append("content type", "application/json"); var requestoptions = { method 'get', headers myheaders, redirect 'follow' }; fetch("https //provisioning rs int {environment} korfinancial com/products/{productidentifier}", requestoptions) then(response => response text()) then(result => console log(result)) catch(error => console log('error', error));require "uri" require "json" require "net/http" url = uri("https //provisioning rs int {environment} korfinancial com/products/{productidentifier}") https = net http new(url host, url port) https use ssl = true request = net http get new(url) request\["accept"] = "application/json" request\["content type"] = "application/json" response = https request(request) puts response read body import requests import json url = "https //provisioning rs int {environment} korfinancial com/products/{productidentifier}" payload = {} headers = { 'accept' 'application/json', 'content type' 'application/json' } response = requests request("get", url, headers=headers, data=payload) print(response text) responses // product retrieved { "identifier" "ee740bb0 f854 4054 b5db 0eaa6b3f6dbb", "lastmodifiedtimestamp" "2020 05 28t14 07 17z", "createdtimestamp" "2020 05 28t14 07 17z", "warnings" \[ { "fieldname" "", "description" "", "reason" "", "category" "", "tag" "", "argumentname" "", "argumentvalue" "" } ], "failurereason" "", "clientpayload" "", "clientpayloadcontenttype" "", "supplementaldata" \[ "" ], "status" "", "warningcount" 2, "kdmrulereferences" \[ { "identifier" "542a4166 24ed 4496 9ffc b64bd2b207a1", "kdmfieldname" "myentityidentifier", "version" 1 } ], "productkdm" { "status" "", "contracttype" "", "uniqueproductidentifier" "qzlnbtg6x7h9", "assetclass" "cr", "productname" "productname", "instrumenttype" "", "deliverytype" "", "underlyingcurrency" "", "otherunderlyingcurrency" "", "optionstyle" "", "optiontype" "", "returnpricingmethodorpayouttrigger" "", "valuationmethodortrigger" "", "seniority" "", "singleormultiplecurrency" "", "standardcontractspecification" "", "referencerate" "", "referencerateleg" 0, "otherreferencerate" "", "referenceratesource" "", "otherreferenceratesource" "", "underlyingisin" "", "underlyinglei" "", "underlyingassettype" "", "underlyingassetorunderlyingcontracttype" "", "otherunderlyingassetorunderlyingcontracttype" "", "underlyingassetsubtypeorunderlyingcontractsubtype" "", "otherunderlyingassetsubtypeorunderlyingcontractsubtype" "", "underlyingassetadditionalsubtypeorunderlyingcontractsubtype" "", "otherunderlyingassetadditionalsubtypeorunderlyingcontractsubtype" "", "underlyingassetorunderlyingcontracttypeother" "", "underlyingassetorunderlyingcontracttypelegother" "", "otherunderlyingassetorunderlyingcontracttypeother" "", "underlyingassetsubtypeorunderlyingcontractsubtypeother" "", "otherunderlyingassetsubtypeorunderlyingcontractsubtypeother" "", "underlyingassetadditionalsubtypeorunderlyingcontractsubtypeother" "", "otherunderlyingassetadditionalsubtypeorunderlyingcontractsubtypeother" "", "underlyingcreditindexseries" 0, "underlyingcreditindexversion" 0, "underlyingissuertype" "", "underlyingrateindextenorperiod" "", "otherunderlyingrateindextenorperiod" "", "underlyingrateindextenorperiodmultiplier" 0, "otherunderlyingrateindextenorperiodmultiplier" 0, "droitassociatedsecuritysettlementoffset" "", "droitbroadvsnarrow" "", "droitcommoditycode" "", "droitcompofxfeatureindicator" true, "droitcontingencyassociatedwith" "", "droitirsblockcurrency" "", "droitdfaunderlyingassettypes" "", "droitdfaunderlyingsecuritytypes" "", "droitfacilitatesecuritysettlementindicator" true, "droitfxspotstandardsettlementperiod" "", "droitfxquotedcurrencypaircurrency1" "", "droitfxquotedcurrencypaircurrency2" "", "droitfxsettlementoffsetaftervaluation" "", "droitbondreferenceindicator" true, "droitembeddedinterestrateoptionalityindicator" true, "droitcontingentsettlementindicator" true, "droitoptionmimicsswappayoutindicator" true, "droitswapclassificationoverride" "", "droittrsunderliertype" "", "droitcommercialpurposefxforwardindicator" true, "droitmifidwholesaleenergyproductindicator" true, "droitesmamarketequivalentcontractindicator" true, "droitcommodityspotsettlementindicator" true, "droitcommodityenergybalanceintentindicator" true, "droitesmalistedassetclass" "", "droitlistedinstrumenttype" "", "isdataxonomy" "interestrate\ irswap\ fixedfloat", "internalidentifier" "productname", "cftcreportableproductindicator" true, "cftcreportableproductjustification" "droit eligibility check", "secreportableproductindicator" true, "secreportableproductjustification" "droit eligibility check", "careportableproductindicator" true, "careportableproductjustification" "droit eligibility check", "emireureportableproductindicator" true, "emireureportableproductjustification" "droit eligibility check", "fcareportableproductindicator" true, "fcareportableproductjustification" "droit eligibility check", "asicreportableproductindicator" true, "asicreportableproductjustification" "droit eligibility check", "masreportableproductindicator" true, "masreportableproductjustification" "droit eligibility check", "strikeprice" 0, "platformidentifier" "", "loadtype" "", "daysoftheweek" \[ "" ], "duration" \[ "" ], "interconnectionpoint" "", "deliverypointorzone" \[ "" ], "acerfixingindexorreferenceprice" \[ "" ], "acertypeoforganisedmarketplaceidentifier" "", "acercontracttradingstarttime" \[ "" ], "acercontracttradingendtime" \[ "" ], "acerlasttradingdateandtime" "", "acercontractname" "", "acercontractidentifier" "", "aceroptionstrikepricecurrency" "", "acerenergycommodity" \[ "" ], "aceroptionexercisedate" \[ "" ], "acercontractdeliverystartdate" \[ "" ], "acercontractdeliveryenddate" \[ "" ], "acercontractdaysoftheweek" \[ "" ], "acercontractdeliveryintervalstarttime" \[ "" ], "acercontractdeliveryintervalendtime" \[ "" ], "strikepricecurrency" "" }, "permissions" { "canedit" true, "candelete" true } }// bad request // unauthorized // forbidden // not found // method not allowed // not acceptable // unsupported media type // internal server error // gateway timeout // internal server error
