Offers Item API
The Offers Item API generates the details of an offer passed in the API request body.
You can obtain the list of offers for this API from the response body of the Catalog Profile API. To get the full list of offers for this catalog, fetch the two lists under
apiResponse.data.catalogProductRelationDetails.Product and merge them.
Pass no more than 20 offers at a time to the API to avoid reaching Salesforce governor limits.
You must first run the Catalog Profile API to obtain the list of offers for this API.
If you specify just one of these two parameters, it follows the behavior described in the table below and accepts your defined time for the parameter you specified. If you are using one or both parameters, you must specify them with the same values for all of the Populate Cache APIs in this sequence.
|effectiveStartTime||2001-07-04T12:08:56||Current date and time||Optional||effectiveStartTime is the time that you want your cached catalog entries to be effective. It should be in the UTC date-time format. Your effectiveStartTime must occur after the current time for which you are executing the Populate Cache APIs or you will receive an error message.|
|expirationTime||2001-07-04T12:08:56||effectiveStartTime + TimeToLive||Optional||expirationTime is the time that you want your cached catalog entries to expire. It should also be in the UTC date-time format. Your expirationTime must occur after your effectiveStartTime or you receive an error message. TimeToLive is a custom setting created in CPQ Configuration Setup. It has a default value of 30 days.|
Here is an example of how to pass the URI parameters:
|offerIds||List of strings||The list of offer IDs in this catalog for which you populate the offers item cache. You can obtain the list of offers for this API from the response body of the Catalog Profile API.||N/A||Required|
This is a sample request for offerIds.
This is an example of how you invoke the API using Apex:
Each item profile in getOffers API can be processed in parallel. For example, if there are 10 catalogs with 200 offers each, then each of these 2,000 items can be populated in parallel using 2,000 threads. This API can also take a list of offers to reduce the number of API calls.
This example contains a list of offers and their details.
|500||Internal Server Error|