question

Upvotes
Accepted
1 0 1 4

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.

<AHS>

original image

1668495213622.png

1668489456620.png

1668495213622.png (95.8 KiB)
Hi @thomas.j.tan ,

please be informed that your application ID and token have been covered for your security and privacy.

Thanks,
AHS

@thomas.j.tan

Hi,

Thank you for your participation in the forum.

Is the reply below satisfactory in answering your question?

If yes please click the 'Accept' text next to the reply. This will guide all community members who have a similar question.

Otherwise please post again offering further insight into your question.

Thanks,

AHS

Please be informed that a reply has been verified as correct in answering the question, and has been marked as such.

Thanks,


AHS

1 Answer

· Write an Answer
Upvotes
Accepted
24.7k 54 17 14

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)

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

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