Get Recommendations
This process returns product recommendations, with rationales for those recommendations.
This is a description of the Get Recommendations endpoint:
- URL: /nlp
- Method: POST
This table shows the parameters that are used in Get Recommendations:
Name | Description | Expected type |
---|---|---|
custid | Customer ID. | String |
limit | Maximum number of recommendations to provide. | Integer |
filter | Manage, recommend, or exclude products of a
particular category.
Optional. Note: To use Filters, assign products to categories in the
mapping table (file).
|
String |
This table shows the success and error responses:
Success response | Error response |
---|---|
Code: 200
OK |
Code: 400 Bad
Request |
Content: {
"custid":"22377A", "limit":3, "recommendations":[ {"prodid":"5",
"rationale":["2","3"]}, {"prodid":"6",
"rationale":["2","3"]},{"prodid":"3", "rationale":["2","5"]} ]
} Note: "Rationale" is the reason for the product being
recommended, based on the list of products previously purchased
by the customer. The success response indicates that each
rationale has the Product IDs for the previously purchased
products.
|
Content: {
"reason":"limit must be positive"} |
This is an example of a call:
http://sicrmbase.cloud.infor.com/nlp {"custid":"36A","limit":"3", "filter":"+(category1) -(category2)"}}