RKD GET DOCUMENT Postman 403 error

Client tries to use Get Document to get filings for ELD.AX with DCN. It works in the RKD Support Portal. Using the same credential and token, and same endpoint, the client got 403 error. I can replicate client’s issue in Postman. Please see details below and shed some lights. Many thanks


Getting 403 error for the below,

http://api.rkd.refinitiv.com/api/FilingsRetrieval3/FilingsRetrieval3.svc/docs/cr14920708/pdf/?docIDType=Dcn


FYI, we are passing active token only. The same token is working for other endpoints.


1668489359525.png


1668489364940.png





Best Answer

  • wasin.w
    wasin.w admin
    Answer ✓

    Hello @thomas.j.tan

    Based on the RKD Support portal page and RKD Developer Guide (you can open it by clicking on the "Developer Guide" button on that page), the RKD Filing Service supports the authentication setting via HTTP Cookies, not HTTP Headers parameters like other services.

    rkd-filing-1.png

    rkd-filing-2.png

    The required HTTP Cookies values are as follows:

    • RkdAppId=AppID
    • RkdToken=RkdToken

    You can find more detail about how to set up HTTP Cookies in Postman via the official Postman https://learning.postman.com/docs/sending-requests/cookies/ document.

    Hope this helps.

Answers

  • Hello @thomas.j.tan

    Based on the official Postman https://learning.postman.com/docs/sending-requests/cookies/ document, you can set the HTTP Cookies automatically when run the Authentication script via the following steps:

    Firstly, add the "api.rkd.refinitiv.com" domain to the Postman Cookies menu:

    rkd-filing-3.png

    Next, add the "api.rkd.refinitiv.com" domain to the Domain Allowlist as follows:

    rkd-filing-4.png

    Then, you can set the Application ID and RKD Token in the Test Script as follows (please update the variable names to match your requirement).

    const cookieJar = pm.cookies.jar();
    cookieJar.set("api.rkd.refinitiv.com", "RkdAppId",pm.variables.get("appid"),(error, cookie) => {
        if (error) {
        console.error(`An error occurred: ${error}`);
      } else {
        console.log(`Cookie saved: ${cookie}`);
      }
    });
    cookieJar.set("api.rkd.refinitiv.com", "RkdToken",pm.variables.get("Token"),(error, cookie) => {
        if (error) {
        console.error(`An error occurred: ${error}`);
      } else {
        console.log(`Cookie saved: ${cookie}`);
      }
    });


  • Then make sure the Cookie is presented in the HTTP Header and the content type is application/pdf.

    rkd-filing-5.png