Discover Refinitiv
MyRefinitiv Refinitiv Perspectives Careers
Created with Sketch.
All APIs Questions & Answers  Register |  Login
Ask a question
  • Questions
  • Tags
  • Badges
  • Unanswered
Search:
  • Home /
  • Screening /
  • World-Check One /

For a deeper look into our World Check One API, look into:

Overview |  Quickstart |  Documentation |  Downloads

avatar image
Question by luis.macedo · Feb 26, 2020 at 04:27 PM · world-checkworld-check-oneerror-401postmanphp

php return 401 Unauthorized response, but postman success

Hi,

I have a class created in php, which generates a string that I send to the world-check one api to create a case, but when I consult, I get this error:

GuzzleHttp \ Exception \ ClientException (401)

Client error: `POST https: // rms-world-check-one-api-pilot.thomsonreuters.com / v2 / cases / screeningRequest` resulted in a` 401 Unauthorized` response

When I show the string that I generate, I copy and paste it to postman with the same url I use from the class, it works, but from a project in Laravel, I don't

People who like this

0 Show 0
Comment
10 |1500 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

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

3 Replies

  • Sort: 
avatar image
REFINITIV
Best Answer
Answer by Mehran.Ahmed Khan · Feb 27, 2020 at 02:49 PM

@luis.macedo

Hi,

401 errors occur because the request has failed an authorization check. This can happen for a variety of reasons, such as

  • An invalid or expired API key,
  • An invalid HMAC signature.
  • Request timing issue/problem with the Date header value. The API client must ensure a correctly synchronized clock is used to generate request timestamps.
  • Incorrect JSON payload formation at your end that can cause a 401 response.

To further investigate this and isolate the cause, can you please share the complete request and response headers of the failed API call?


Thanks

Comment

People who like this

0 Show 0 · Share
10 |1500 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

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

avatar image
Answer by luis.macedo · Feb 28, 2020 at 02:31 PM

Hello @Mehran.Ahmed Khan,

What time is needed? GMT or UTC, check on postman Refinitiv documentation and see this params:



screenshot-1.png (148.4 KiB)
Comment

People who like this

0 Show 0 · Share
10 |1500 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

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

avatar image
REFINITIV
Answer by Mehran.Ahmed Khan · Mar 02, 2020 at 10:29 AM

@luis.macedo

Hi,

As you see the pre-request script postman automatically has the time synced with the GMT time.

I was referring to the request time header from your php code to be in sync with the GMT time.

Let me know if you would like to get on a quick meeting and take a look at this.


Regards

Comment

People who like this

0 Show 0 · Share
10 |1500 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

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

Watch this question

Add to watch list
Add to your watch list to receive emailed updates for this question. Too many emails? Change your settings >
11 People are following this question.

Related Questions

World-Check ONE API requests return 401 Unauthorized

GET cases/{caseSystemId} works in postman, always returns 401 in php

/v2/ 401 Unauthorized response in Postman

All calls are failing with 401 Unauthorized on Postman - Pilot environment

Keep getting 401 in zero footprint synchronous screening api hit through postman

  • Copyright
  • Cookie Policy
  • Privacy Statement
  • Terms of Use
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Alpha
  • App Studio
  • Block Chain
  • Bot Platform
  • Connected Risk APIs
  • DSS
  • Data Fusion
  • Data Model Discovery
  • Datastream
  • Eikon COM
  • Eikon Data APIs
  • Electronic Trading
    • Generic FIX
    • Local Bank Node API
    • Trading API
  • Elektron
    • EMA
    • ETA
    • WebSocket API
  • Intelligent Tagging
  • Legal One
  • Messenger Bot
  • Messenger Side by Side
  • ONESOURCE
    • Indirect Tax
  • Open Calais
  • Open PermID
    • Entity Search
  • Org ID
  • PAM
    • PAM - Logging
  • ProView
  • ProView Internal
  • Product Insight
  • Project Tracking
  • RDMS
  • Refinitiv Data Platform
    • Refinitiv Data Platform Libraries
  • Rose's Space
  • Screening
    • Qual-ID API
    • Screening Deployed
    • Screening Online
    • World-Check One
    • World-Check One Zero Footprint
  • Side by Side Integration API
  • TR Knowledge Graph
  • TREP APIs
    • CAT
    • DACS Station
    • Open DACS
    • RFA
    • UPA
  • TREP Infrastructure
  • TRKD
  • TRTH
  • Thomson One Smart
  • Transactions
    • REDI API
  • Velocity Analytics
  • Wealth Management Web Services
  • Workspace SDK
    • Element Framework
    • Grid
  • World-Check Data File
  • 中文论坛
  • Explore
  • Tags
  • Questions
  • Badges