SAP Knowledge Base Article - Public

3375054 - Error 500 when using Custom Table API

Symptom

Error 500 when using Custom Table API.

Environment

SAP SALES CLOUD CPQ

Reproducing the Issue

  1. Generate Bearer Token;
  2. Try using any Custom Table API;
  3. Error 500 is received as response for the API call. 

Cause

Custom Table API requires JWT Bearer Token to be passed.

Resolution

  1. Generate Bearer Token using GET https://<CPQ URL>/basic/api/token;
  2. 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;
  3. 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