cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Curls error when get supplier data with REST API pagination

iliyan_spasov
Discoverer
0 Kudos
458

Hello Team,

I am trying to get data from ARIBA supplier questionnaire answers with Pagination REST API. My role in the organization is: Role: Developer, Organization Admin and I created Application in the portal which has been approved and it has been connected to the API:

API(s) used by this Application

  1. Supplier Data API With Pagination - Version v4 (Active)

Realm(s) used by this Application

  1. SOURCING realm: APP name

    (AN-ID: ID)

I generated the App Key and then the BASE 64 client and secret in order to generate the token (token has been generated successfully). When I tried to get the data for specific supplier and questionnaire (I tried and with all questionaires ) it shows me error:

curl -X GET "https://eu.openapi.ariba.com/api/supplierdatapagination/v4/prod/vendors/"VendorID"/workspaces/questionnaires/QuestionaireID/qna?realm=MY_APP_NAME" -H "accept: application/json" -H "apiKey: API key" -H "Authorization: Bearer TokenID"

{"errorMsg":"Unauthorized application","isSucceed":false}

Then I added my IP in the application white list (it was empty before so should be working with all IPs based on the documentation) and I set all IPs to be whitelisted like 0.0.0.0/1, too. Then the error massage was:

"message":"Access Denied. Please contact your Organization admin"

May I kindly ask for some support as I was not able to find any related details for such kind of issue?

Thanks you in advance.

Accepted Solutions (0)

Answers (1)

Answers (1)

iliyan_spasov
Discoverer
0 Kudos

Issue fixed. It has been used for realm the application name, it must be the realm from the application:
Realm(s) used by this Applicatio SOURCING realm: YourRealm

...realm={YourRealm}"