Symptom
Error 500 when using Custom Table API.
Environment
SAP SALES CLOUD CPQ
Reproducing the Issue
- Generate Bearer Token;
- Try using any Custom Table API;
- Error 500 is received as response for the API call.
Cause
Custom Table API requires JWT Bearer Token to be passed.
Resolution
- Generate Bearer Token using GET https://<CPQ URL>/basic/api/token;
- Copy Bearer token and pass it, as Bearer Token, to API that generates JWT Bearer Token GET https://<CPQ URL>/api/rd/v1/core/GenerateJWT;
- Copy token generated in step 2 and pass it as Bearer Token to the Custom Table API https://<CPQ URL>/api/custom-table/v1/customTables/{tableName}/entries.
See Also
Keywords
Custom Table, API, Error, Internal Server Error, CPQ , KBA , CEC-SAL-CPQ , Sales Cloud CPQ , How To
Product
SAP CPQ 2023