cancel
Showing results for 
Search instead for 
Did you mean: 

SAP Service Cloud API integration error.

I535860
Advisor
Advisor
0 Kudos
170

hello!!! I'm working on a prototype with Conversational AI and service cloud.

I want to create a ticket from CAI using the Odata API. I don't have problems when I do the GET to make a query into Service, but when I want to POST the Odata to create the ticket i have the below error.

I just generated the X-csrf token but still have the authorization problem.

any one have any Idea'???

Thanks!!

View Entire Topic
former_member226
Employee
Employee
0 Kudos

Hi,

While passing the CSRF token to the POST call, you have to also pass the session cookie as the request header for the POST call because CSRF token is valid against one session. Pls check the following thread which explains the fix in detail

https://answers.sap.com/questions/13116300/csrf-token-validation-failedstatus-code403-error-i.html?c...

Thanks

Saurabh