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

OAuth request is failing in CPI using standard integration(Replicate-Orders-From-SAP-Commerce-Cloud-

UppalaPraneeth
Discoverer
0 Likes
417

Hi Team,

We are trying to hit into CPI, but this is the error which we are getting, we are maintained OAuth credentials and we are doing SAP Ecommerce cloud. we are unable to hit the CPI and we are creating service request and we are creating this credentials and we are trying to hit into CPI, but it is not working. we are using standard integration flow(Replicate-Orders-From-SAP-Commerce-Cloud-To-SAP-S4HANA). We are getting 403 forbidden request, but if we just call HTTP if we create a dummy request HTTP we are able to hit, but Oauth it will not working.
Is there any whitelisting which needs to be done for the allowed IP's into the CPI.Can you please help us to trouble shoot. 

Thanks & Regards,

Praneeth

Accepted Solutions (0)

Answers (1)

Answers (1)

cieslo
Product and Topic Expert
Product and Topic Expert
0 Likes

From the attached screenshot it's not clear what type of Authorization you used. Please check this help page: Testing a Connection from SAP Commerce Cloud to SCI using an OAuth Token. As you can see first you need to do a POST request to obtain Bearer token and then use it in GET request with X-CSRF-Token set to Fetch in order to obtain CSRF token. After that both Bearer and CSRF can be used to do the POST request.