Create Data Session API

Call this API to create a data session against the approved consentId

Request

Specify the format in which you wish to receive the decrypted financial data, this can be xml or json.

Make sure that values of DataRange array in the body, matches or is within the FIDataRange specified in the Create Consent API.

{
    "ver": "2.1.0",
    "timestamp": "2024-03-06T14:02:28.608Z",
    "txnid": "c6b4550c-7088-4b29-aa47-53a82eb6d152",
    "FIDataRange": {
        "from": "2022-06-06T11:39:57.153Z",
        "to": "2022-07-06T11:39:57.153Z"
    },
    "Consent": {
        "id": "de272fe6-5b3d-481f-bec9-5fc0261213fc",
        "digitalSignature": "b23RydpMjpvp3sO2pNJijlVEk_8UXO7Q4IO_KkkEY1IMJMc-fet5AfJJ1WpgS1o2IRO-v51PfbbIIvw45Vhj9kZHa-ayP6d7EAPkjRDCa4MkDz7qQ_EN7aL0DbXivVOHIBRXq7TKIAvm-GfCj7Gya3r2ViClvqEbrwRvjHxM9-tRNWKdSjPYZNFJKpYek6Hbf8IjVioKcK9g0-_Xzdf2qFZyyfiGDoQOQK5MiQXBdIQgrYP3cSQbieZCXEDfe2ImIH127DQZvHEHrkbwTnvTllZGYcQQCZ9C_hfYykwfulcrnBffGRuqdp6uTKhgILuIXVX4GIGkmE12QKGp10iPIg"
    },
    "KeyMaterial": {
        "cryptoAlg": "ECDH",
        "curve": "Curve25519",
        "params": "",
        "DHPublicKey": {
            "expiry": "2024-03-16T13:17:47.682Z",
            "Parameters": "",
            "KeyValue": "-----BEGIN PUBLIC KEY-----MIIBMTCB6gYHKoZIzj0CATCB3gIBATArBgcqhkjOPQEBAiB/////////////////////////////////////////7TBEBCAqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqYSRShRAQge0Je0Je0Je0Je0Je0Je0Je0Je0Je0Je0JgtenHcQyGQEQQQqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq0kWiCuGaG4oIa04B7dLHdI0UySPU1+bXxhsinpxaJ+ztPZAiAQAAAAAAAAAAAAAAAAAAAAFN753qL3nNZYEmMaXPXT7QIBCANCAAQaHF0Uxi4yoWteplowXljuDgBQR/Scb5jsdVoYWQe6hjX1SVxCVaq/CnP56PgjVOFERzCqX9FOet2f3A1VS8A5-----END PUBLIC KEY-----"
        },
        "Nonce": "OTQ4MjI0YzZhMGVkN2VmMDMxZDk4MGVmNTYyZWY3N2M="
    }
}
 

Response

{
    "ver": "1.1.2",
    "timestamp": "2024-03-06T14:02:29.773+00:00",
    "txnid": "c6b4550c-7088-4b29-aa47-53a82eb6d152",
    "consentId": "c3b077f0-d111-4457-b6ba-90cf62c48d9f",
    "sessionId": "7fb9745f-05be-457a-85cc-465df677f3ed"
}