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

REST API Integration

2,152

What is the prerequisite for integrating SAP Order Management Foundation into our system? Please provide the integration methodology of REST API.

View Entire Topic
stefan_weidemueller-schmi
Product and Topic Expert
Product and Topic Expert

Hello,

If you want to consume SAP Order Management foundation API's, you have to, beside licensing the product:

1. have prepared your SAP BTP, Cloud Foundry environment (including assigning the entitlement, creating the service instance and a service key), see SAP Help

2. then you can retrieve the base URL for the API from the list of endpoints in the service key and construct the complete URL by adding the path as mentioned on the API hub ( base url + path)

3. Before sending a request to the API, you first have to follow the oAuth2 protocol and fetch a JWT token from xsuaa (credentials and URL can again be found in the service key).

4. Now you can construct your postman call with filling the complete URL (no port needed) and choosing Authorization type "Bearer Token", where the value is the retrieved "access_token" value from the xsuaa response.


Hope this helps further!

0 Likes

Hi Stefan, stefan.weidemueller-schmidt

Thank you for your response!

We have license to S4HANA, Solution Manager ABAP, SAP Cloud Connector in our SAP landscape running on NS2 Cloud. What APIs do we have access to given this landscape ?

Thanks,

Ajay