Skip to Content
Technical Articles
Author's profile photo Yogananda Muthaiah

SAP CPQ – Stateful API Authentication – Using in 3rd Party & other tools

Hello ,

The purpose of this article is to demonstrate and explain how CPQ API Authentication is made and CSRF token gets generated for making use of other endpoints.

This article provided examples applies only to /api/rd/v1/xxxxxxxxx

This authentication type is used for responsive design APIs. If you are calling an API from a SAP CPQ page using JavaScript, no additional steps are required as you are already authenticated. However, if you are calling the API from a third-party tool, you should first log in calling the method /api/rd/v1/Core/LogIn. This creates a session and gets the CSRF header token.

 

CPQ API Documentation

Step 1 :  How to get CPQ CSRF token ?


Pass the CSRF Token in Authorization request to refresh the session


API to find total number of Product Catalogs with multiple filters


API to find all the Catalog Information


API to find all the customer details exist in CPQ


Keep watching for Admin related API Authentication & endpoints in my next Article

 

Thanks, for reading it till the end. 🙏


Hope you find that helpful! Let me know your thoughts on this in the comments section.
Don’t forget to share this article with your friends or colleagues.
Feel free to connect with me on any of the platforms below! 🚀

SAP |Twitter | LinkedIn | GitHub

 


Assigned Tags

      4 Comments
      You must be Logged on to comment or reply to a post.
      Author's profile photo Alex Reid
      Alex Reid

      Hi Yogananda,

      Thanks for passing on your knowledge. I have been using this guide successfully for the last couple of weeks but am no longer seeing the CSRF token in my response body - it is "null" with a status code of 200. My credentials have not changed, which has me a bit confused. Is there any way I can troubleshoot this call?

      Thanks,
      Alex

      Author's profile photo Yogananda Muthaiah
      Yogananda Muthaiah
      Blog Post Author

      Hi Alex Reid

      Sure, send me an email and we can see the issue.

      Author's profile photo Alex Reid
      Alex Reid

      Thank you for replying SAP

      What would be the best way to get in contact? I can't seem to find an email.

      Author's profile photo Yogananda Muthaiah
      Yogananda Muthaiah
      Blog Post Author

      Hi Alex Reid
      you seems to be in offline. you can write an email to me yogananda.muthaiah@sap.com