question

Upvotes
Accepted
1 0 0 1

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





#technologyrkd-apipostmanerror-403
1668489359525.png (87.3 KiB)
1668489364940.png (108.9 KiB)
icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

Upvotes
Accepted
17.5k 35 12 12

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.


rkd-filing-1.png (191.4 KiB)
rkd-filing-2.png (29.1 KiB)
icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

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}`);
  }
});


rkd-filing-3.png (14.7 KiB)
rkd-filing-4.png (22.9 KiB)

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

rkd-filing-5.png

rkd-filing-5.png (98.3 KiB)