RS Provisioner API
Entities
Get the details of an entity
1 min
code examples curl location globoff 'https //provisioning rs int {environment} korfinancial com/entities/{entityidentifier}' \\ \ 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/entities/{entityidentifier}", 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/entities/{entityidentifier}") 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/entities/{entityidentifier}" payload = {} headers = { 'accept' 'application/json', 'content type' 'application/json' } response = requests request("get", url, headers=headers, data=payload) print(response text) responses // entity 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 } ], "entitykdm" { "status" "", "shortname" "shortname", "legalname" "legalname", "asicsmallscalebuysideindicator" true, "cadesignation" \[ { "effectivedate" "2020 01 01", "value" "ca" } ], "calocalcounterparty" \[ "" ], "cftcclearingexceptionsandexemptions" \[ "" ], "cftcconduitaffiliateusperson" true, "cftcdesignation" \[ { "effectivedate" "2020 01 01", "value" "sd" } ], "cftcfederalentityindicator" true, "cftcfinancialentityindicator" true, "cftcguaranteedaffiliateusperson" true, "cftcinternationalfinancialinstitutionindicator" true, "cftclimitedpurposedesignation" "crdt", "cftcsmalllocalpresenceindicator" true, "cftcusperson" true, "country" "us", "droitenergyoperatorindicator" true, "droitestablishedin" \[ "" ], "droitforeignbranchuspersonindicator" true, "droitultimateparententitytype" "contraparty", "entitytype" "my entity", "esmabisindicator" true, "esmacentralbankorpublicdebtmanagerindicator" true, "esmacorporatesector" \[ { "effectivedate" "2020 01 01", "value" \[ "" ] } ], "esmaequivalentreportingindicator" true, "esmaexceedsclearingthreshold" \[ { "effectivedate" "2020 01 01", "value" \[ "" ] } ], "esmaexemptedforeigncentralbankindicator" true, "esmanatureofcounterparty" "f", "esmaparentfinancialcounterpartyindicator" true, "esmareportingobligation" true, "esmathirdcountryindicator" true, "internalidentifier" "27id", "npid" \[ { "effectivedate" "2020 01 01", "value" "npid" } ], "leid" \[ { "effectivedate" "2020 01 01", "value" "fake0022222222222200" } ], "mic" \[ { "effectivedate" "2020 01 01", "value" "mic" } ], "interaffiliate" \[ { "effectivedate" "2020 01 01", "value" true } ], "cftcreportingentity" "", "caaffiliateofcadealer" \[ { "effectivedate" "2020 01 01", "value" true } ], "cacanadianaffiliatedpersonlocalities" \[ { "effectivedate" "2020 01 01", "value" \[ "" ] } ], "cacanadianpersonlocalities" \[ { "effectivedate" "2020 01 01", "value" \[ "" ] } ], "cacanadianspecialentity" false, "caclearingexemption" \[ { "effectivedate" "2020 01 01", "value" \[ "\[\\"noal\\",\\"smbk\\"]" ] } ], "cadeemeddealerlocalities" \[ { "effectivedate" "2020 01 01", "value" \[ "" ] } ], "caisdacanadareportingagreementindicator" \[ { "effectivedate" "2020 01 01", "value" true } ], "droitcacanadiancommoditiescommercialintent" \[ { "effectivedate" "2020 01 01", "value" true } ], "caprovinceorterritory" \[ { "effectivedate" "2020 01 01", "value" \[ "" ] } ], "caregistereddealerlocalities" \[ { "effectivedate" "2020 01 01", "value" \[ "" ] } ], "careportingobligation" \[ { "effectivedate" "2020 01 01", "value" true } ], "droitnegaffagreementprovider" \[ { "effectivedate" "2020 01 01", "value" true } ], "droitpartyrole" "both", "individualindicator" false, "masteragreementtype" \[ { "effectivedate" "2020 01 01", "value" "" } ], "masteragreementversion" \[ { "effectivedate" "2020 01 01", "value" "" } ], "caqualifiedreportingcounterpartyindicator" false, "smallcommoditynotionalindicator" false, "caclearingagencyaffiliatelocalities" \[ { "effectivedate" "2020 01 01", "value" \[ "" ] } ], "caclearingagencylocalities" \[ { "effectivedate" "2020 01 01", "value" \[ "" ] } ], "caindividuallocalities" \[ { "effectivedate" "2020 01 01", "value" \[ "" ] } ], "cafinancialentityindicator" false, "cafinancialinstitutionindicator" false, "cainvestmentfundindicator" false, "calistedforeignbankindicator" false }, "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
