Product Recommendation (1.0)
Download OpenAPI specification:Download
License: Nexway License Version 1.0
API to manage product recommendations (crossell, upsell, upgrade)
Import a recommendation
Authorizations:
Bearer
query Parameters
reason | string Default: "resource import thru REST Api" |
Request Body schema: application/jsonrequired
Responses
Request samples
- Payload
Content type
application/json
No sample
Response samples
- 200
- 201
- 401
- 403
- 404
- 500
Content type
application/json
No sample
Get items
Authorizations:
Bearer
query Parameters
required | object (Pageable) |
predicate required | object |
target | string |
Responses
Response samples
- 200
- 401
- 403
- 404
- 500
Content type
application/json
{- "items": [
- {
- "id": "string",
- "customerId": "string",
- "createDate": "2019-08-24T14:15:22Z",
- "updateDate": "2019-08-24T14:15:22Z",
- "modelVersion": "string",
- "dbVersion": 0,
- "lastUpdateReason": "string",
- "name": "string",
- "status": "ENABLED",
- "startDate": "2019-08-24T14:15:22Z",
- "endDate": "2019-08-24T14:15:22Z",
- "levels": "CART, PRODUCT, PURCHASE, INTERSTITIAL",
- "type": "CROSS_SELL",
- "catalogId": "string",
- "sources": "PURCHASE, SUBSCRIPTION, MANUAL_RENEWAL, BILLING_PLAN",
- "localizedDesc": {
- "property1": "string",
- "property2": "string"
}, - "fallbackLocale": "string",
- "weight": 0,
- "eligibleStoreIds": [
- "string"
], - "eligibleProductIds": [
- "string"
], - "eligibleParentProductIds": [
- "string"
], - "function": "predefinedIdsRecoRule, idToIdsRecoRule"
}
], - "last": true,
- "totalItems": 0,
- "totalPages": 0,
- "size": 0,
- "number": 0
}
Get recap quantities for a given field
Authorizations:
Bearer
query Parameters
target required | string |
required | object (Pageable) |
predicate required | object |
Responses
Response samples
- 200
- 401
- 403
- 404
- 500
Content type
application/json
{- "items": [
- {
- "targetValue": "string",
- "count": 0
}
], - "last": true,
- "totalItems": 0,
- "totalPages": 0,
- "size": 0,
- "number": 0
}
Search unwind for a given field
Authorizations:
Bearer
query Parameters
target required | string |
required | object (Pageable) |
predicate required | object |
Responses
Response samples
- 200
- 401
- 403
- 404
- 500
Content type
application/json
{- "items": [
- {
- "empty": true,
- "property1": { },
- "property2": { }
}
], - "last": true,
- "totalItems": 0,
- "totalPages": 0,
- "size": 0,
- "number": 0
}
Get recommendations for a cart
Get product recommendations for all products in a given cart.
Authorizations:
Bearer
query Parameters
cartId required | string |
Responses
Response samples
- 200
- 401
- 403
- 404
- 500
Content type
application/json
{- "recommendations": {
- "property1": {
- "property1": {
- "property1": {
- "localizedDesc": "string",
- "products": [
- {
- "id": "string",
- "quantity": 0,
- "variantOf": "string",
- "priceFunctionParametersValues": {
- "property1": "string",
- "property2": "string"
}, - "forcedBy": "string",
- "crossSellBy": "string",
- "upSellBy": "string"
}
]
}, - "property2": {
- "localizedDesc": "string",
- "products": [
- {
- "id": "string",
- "quantity": 0,
- "variantOf": "string",
- "priceFunctionParametersValues": {
- "property1": "string",
- "property2": "string"
}, - "forcedBy": "string",
- "crossSellBy": "string",
- "upSellBy": "string"
}
]
}
}, - "property2": {
- "property1": {
- "localizedDesc": "string",
- "products": [
- {
- "id": "string",
- "quantity": 0,
- "variantOf": "string",
- "priceFunctionParametersValues": {
- "property1": "string",
- "property2": "string"
}, - "forcedBy": "string",
- "crossSellBy": "string",
- "upSellBy": "string"
}
]
}, - "property2": {
- "localizedDesc": "string",
- "products": [
- {
- "id": "string",
- "quantity": 0,
- "variantOf": "string",
- "priceFunctionParametersValues": {
- "property1": "string",
- "property2": "string"
}, - "forcedBy": "string",
- "crossSellBy": "string",
- "upSellBy": "string"
}
]
}
}
}, - "property2": {
- "property1": {
- "property1": {
- "localizedDesc": "string",
- "products": [
- {
- "id": "string",
- "quantity": 0,
- "variantOf": "string",
- "priceFunctionParametersValues": {
- "property1": "string",
- "property2": "string"
}, - "forcedBy": "string",
- "crossSellBy": "string",
- "upSellBy": "string"
}
]
}, - "property2": {
- "localizedDesc": "string",
- "products": [
- {
- "id": "string",
- "quantity": 0,
- "variantOf": "string",
- "priceFunctionParametersValues": {
- "property1": "string",
- "property2": "string"
}, - "forcedBy": "string",
- "crossSellBy": "string",
- "upSellBy": "string"
}
]
}
}, - "property2": {
- "property1": {
- "localizedDesc": "string",
- "products": [
- {
- "id": "string",
- "quantity": 0,
- "variantOf": "string",
- "priceFunctionParametersValues": {
- "property1": "string",
- "property2": "string"
}, - "forcedBy": "string",
- "crossSellBy": "string",
- "upSellBy": "string"
}
]
}, - "property2": {
- "localizedDesc": "string",
- "products": [
- {
- "id": "string",
- "quantity": 0,
- "variantOf": "string",
- "priceFunctionParametersValues": {
- "property1": "string",
- "property2": "string"
}, - "forcedBy": "string",
- "crossSellBy": "string",
- "upSellBy": "string"
}
]
}
}
}
}, - "reports": {
- "property1": {
- "property1": {
- "property1": {
- "products": {
- "property1": {
- "status": "RECOMMENDED",
- "explanation": "string"
}, - "property2": {
- "status": "RECOMMENDED",
- "explanation": "string"
}
}
}, - "property2": {
- "products": {
- "property1": {
- "status": "RECOMMENDED",
- "explanation": "string"
}, - "property2": {
- "status": "RECOMMENDED",
- "explanation": "string"
}
}
}
}, - "property2": {
- "property1": {
- "products": {
- "property1": {
- "status": "RECOMMENDED",
- "explanation": "string"
}, - "property2": {
- "status": "RECOMMENDED",
- "explanation": "string"
}
}
}, - "property2": {
- "products": {
- "property1": {
- "status": "RECOMMENDED",
- "explanation": "string"
}, - "property2": {
- "status": "RECOMMENDED",
- "explanation": "string"
}
}
}
}
}, - "property2": {
- "property1": {
- "property1": {
- "products": {
- "property1": {
- "status": "RECOMMENDED",
- "explanation": "string"
}, - "property2": {
- "status": "RECOMMENDED",
- "explanation": "string"
}
}
}, - "property2": {
- "products": {
- "property1": {
- "status": "RECOMMENDED",
- "explanation": "string"
}, - "property2": {
- "status": "RECOMMENDED",
- "explanation": "string"
}
}
}
}, - "property2": {
- "property1": {
- "products": {
- "property1": {
- "status": "RECOMMENDED",
- "explanation": "string"
}, - "property2": {
- "status": "RECOMMENDED",
- "explanation": "string"
}
}
}, - "property2": {
- "products": {
- "property1": {
- "status": "RECOMMENDED",
- "explanation": "string"
}, - "property2": {
- "status": "RECOMMENDED",
- "explanation": "string"
}
}
}
}
}
}
}
Get recommendations for a line item
Get product recommendations for a line item.
Authorizations:
Bearer
query Parameters
previousLineItemId required | string |
enduserId required | string |
Responses
Response samples
- 200
- 401
- 403
- 404
- 500
Content type
application/json
{- "recommendations": {
- "property1": {
- "property1": {
- "property1": {
- "localizedDesc": "string",
- "products": [
- {
- "id": "string",
- "quantity": 0,
- "variantOf": "string",
- "priceFunctionParametersValues": {
- "property1": "string",
- "property2": "string"
}, - "forcedBy": "string",
- "crossSellBy": "string",
- "upSellBy": "string"
}
]
}, - "property2": {
- "localizedDesc": "string",
- "products": [
- {
- "id": "string",
- "quantity": 0,
- "variantOf": "string",
- "priceFunctionParametersValues": {
- "property1": "string",
- "property2": "string"
}, - "forcedBy": "string",
- "crossSellBy": "string",
- "upSellBy": "string"
}
]
}
}, - "property2": {
- "property1": {
- "localizedDesc": "string",
- "products": [
- {
- "id": "string",
- "quantity": 0,
- "variantOf": "string",
- "priceFunctionParametersValues": {
- "property1": "string",
- "property2": "string"
}, - "forcedBy": "string",
- "crossSellBy": "string",
- "upSellBy": "string"
}
]
}, - "property2": {
- "localizedDesc": "string",
- "products": [
- {
- "id": "string",
- "quantity": 0,
- "variantOf": "string",
- "priceFunctionParametersValues": {
- "property1": "string",
- "property2": "string"
}, - "forcedBy": "string",
- "crossSellBy": "string",
- "upSellBy": "string"
}
]
}
}
}, - "property2": {
- "property1": {
- "property1": {
- "localizedDesc": "string",
- "products": [
- {
- "id": "string",
- "quantity": 0,
- "variantOf": "string",
- "priceFunctionParametersValues": {
- "property1": "string",
- "property2": "string"
}, - "forcedBy": "string",
- "crossSellBy": "string",
- "upSellBy": "string"
}
]
}, - "property2": {
- "localizedDesc": "string",
- "products": [
- {
- "id": "string",
- "quantity": 0,
- "variantOf": "string",
- "priceFunctionParametersValues": {
- "property1": "string",
- "property2": "string"
}, - "forcedBy": "string",
- "crossSellBy": "string",
- "upSellBy": "string"
}
]
}
}, - "property2": {
- "property1": {
- "localizedDesc": "string",
- "products": [
- {
- "id": "string",
- "quantity": 0,
- "variantOf": "string",
- "priceFunctionParametersValues": {
- "property1": "string",
- "property2": "string"
}, - "forcedBy": "string",
- "crossSellBy": "string",
- "upSellBy": "string"
}
]
}, - "property2": {
- "localizedDesc": "string",
- "products": [
- {
- "id": "string",
- "quantity": 0,
- "variantOf": "string",
- "priceFunctionParametersValues": {
- "property1": "string",
- "property2": "string"
}, - "forcedBy": "string",
- "crossSellBy": "string",
- "upSellBy": "string"
}
]
}
}
}
}, - "reports": {
- "property1": {
- "property1": {
- "property1": {
- "products": {
- "property1": {
- "status": "RECOMMENDED",
- "explanation": "string"
}, - "property2": {
- "status": "RECOMMENDED",
- "explanation": "string"
}
}
}, - "property2": {
- "products": {
- "property1": {
- "status": "RECOMMENDED",
- "explanation": "string"
}, - "property2": {
- "status": "RECOMMENDED",
- "explanation": "string"
}
}
}
}, - "property2": {
- "property1": {
- "products": {
- "property1": {
- "status": "RECOMMENDED",
- "explanation": "string"
}, - "property2": {
- "status": "RECOMMENDED",
- "explanation": "string"
}
}
}, - "property2": {
- "products": {
- "property1": {
- "status": "RECOMMENDED",
- "explanation": "string"
}, - "property2": {
- "status": "RECOMMENDED",
- "explanation": "string"
}
}
}
}
}, - "property2": {
- "property1": {
- "property1": {
- "products": {
- "property1": {
- "status": "RECOMMENDED",
- "explanation": "string"
}, - "property2": {
- "status": "RECOMMENDED",
- "explanation": "string"
}
}
}, - "property2": {
- "products": {
- "property1": {
- "status": "RECOMMENDED",
- "explanation": "string"
}, - "property2": {
- "status": "RECOMMENDED",
- "explanation": "string"
}
}
}
}, - "property2": {
- "property1": {
- "products": {
- "property1": {
- "status": "RECOMMENDED",
- "explanation": "string"
}, - "property2": {
- "status": "RECOMMENDED",
- "explanation": "string"
}
}
}, - "property2": {
- "products": {
- "property1": {
- "status": "RECOMMENDED",
- "explanation": "string"
}, - "property2": {
- "status": "RECOMMENDED",
- "explanation": "string"
}
}
}
}
}
}
}