cancel
Showing results for 
Search instead for 
Did you mean: 

how to make API calls to Ariba Network using postman

ShikhaG
Participant

Accepted Solutions (1)

Accepted Solutions (1)

ccottier
Explorer

Hi Shikha,

I haven't tried to call Ariba Network's APIs but I've successfully been able to call Ariba Procurement API (Document Approval API) from Postman.

Here are the steps I have followed to achieve my case and that might help you.

  1. Go to developer SAP Ariba APIs portal (https://developer.ariba.com/api/)
  2. If it's the first time you connect on it will ask you to register. As a result it will create a SR to activate your account and grant you access
  3. Once your access are granted, come back to SAP API portal (see point 1) and go to "Manage"
  4. Create an application (provide name and description) and proceed with the workflow as detailed below
  5. Request API access
  6. Wait for approval of your Admin
  7. Wait for approval of Ariba
  8. Ask your admin to generate the OAuth secret and note "OAuth Client Id", "OAuth Secret", "Base64 Encoded Client and Secret" and "Application Key"

Once you are done, launch Postman. The information below are based on my case, I suggest that either you try it or adapt it to your case.

Create a POST request for https://api-eu.ariba.com/v2/oauth/token/ (take note of the "-eu" because I am using EU data center for Procurement but for AN it is only on US data center)

  • Headers > Add parameter "Authorization" with value set to "Basic xxx" where "xxx" is the Base64 Encoded Client and Secret
  • Headers > Add parameter "Content-Type" with value "application/x-www-form-urlencoded"
  • Body > Add raw value "grant_type=openapi_2lo"
  • Send and note the "access_token" from the response

Create a GET request for https://eu.openapi.ariba.com/api/approval/v1/prod/changes?realm=your_realm_id

  • Authorization > Set type on "Bearer Token" and set the "Token" value with the access_token you received
  • Headers > Add parameter "apikey" with value set with the key of the application created on point 4
  • Define the body according to the specifications of the API you use

I hope this help you for your case with AN APIs as I wrote this down from my "memory". Feel free to ask for additional information or help of you are stuck during a step.

Best regards,

Cédric

Husain
Participant
0 Kudos

How can we achieve this programmatically in ABAP? We want to integrate the ARIBA approvals in FIORI My Inbox and do the approvals from FIORI instead of ARIBA.

Answers (0)