How to obtain my S4HC APIKey

2 months ago 10

Hi

I started to constitute this question arsenic I thought I needed the APIKey for a telephone to this API below.  I americium inactive wanting to cognize that.

I privation to update an constituent via the API_BUSINESS_PARTNER ... I person acceptable up the comms statement sap_com_008 with basal authentication for this test.

According to the API Hub an APIKey is needed - that is successful information not existent !!!.:face_with_rolling_eyes: As I tin telephone the API without it and it does the PATCH conscionable fine.  But retired of interest How tin I get my SAP systems APIKey?:thinking_face:

In lawsuit you are funny successful this portion : Here is the API I americium calling https://<my sap system>-api.s4hana.ondemand.com:443/sap/opu/odata/sap/API_BUSINESS_PARTNER/A_BusinessPartner('9980000760').     This has successful the Authorization tab my connection arrangements userid/password credentials.  The Headers person the CSRF token that I person obtained and it does not attraction astir the APIKey.   The happening does post/patch conscionable good without it.

peter_munt4_4-1724742824134.png

Here are the steps etc I took truthful acold to get my APIKey

I person acceptable a clientid/secret for OAUTH calls to S4HC API successful our SAP IAS Application for our S4HANA Cloud- Test Tenant (i,e, the S4HC D5X system) and the Client Authentication property tab - The ClientID was already determination and I person added a Secret.

peter_munt4_0-1724741362559.png

I past effort to get the APIKey via https://<mysapsystem>-api.s4hana.ondemand.com:443/oauth/token

but I get a 403 - truthful however tin I get my dang APIKey ?

peter_munt4_1-1724741541412.png

Read Entire Article