Symptom
When using Quotes API with /api/v1/quotes?$top={number greater than 1000}, receives:
{
"error": {
"code": "112000",
"message": "The maximum of $top is 1000 ",
"details": [],
"internalMessage": "The maximum of $top is 1000 "
}
}
Environment
SAP SALES CLOUD CPQ in Quote 2.0
Reproducing the Issue
- Create API call with Quotes using: https://{{Domain}}.cpq.cloud.sap/api/v1/quotes?$top={number greater than 1000};
- Error is received with status "400: Bad Request".
Cause
Filter $top has a limit of 1000.
Resolution
If you wish to retrieve more data then 1000 in Quote API, you will need to use filter $top along with $skip, as following:
https://{{Domain}}.cpq.cloud.sap/api/v1/quotes?$top=1000$skip={amount of values you wish to skip}
See Also
Keywords
API, Quote, $top, $skip, Filter, Error, CPQ , KBA , CEC-SAL-CPQ , Sales Cloud CPQ , How To
Product
SAP CPQ 2023