Authorizations
Access token
Path Parameters
Cart Id
Commerce Engine is now in beta. We're working hard to make it better for you.
curl --request GET \
--url https://staging.api.commercengine.io/api/v1/{store_id}/storefront/pos/carts/{id}/evaluate-promotions \
--header 'Authorization: Bearer <token>'
{
"message": "<string>",
"success": true,
"content": {
"applicable_promotions": [
{
"id": "<string>",
"name": "<string>",
"promotion_type": "discount",
"estimated_discount": 123,
"savings_message": "<string>"
}
],
"inapplicable_promotions": [
{
"id": "<string>",
"name": "<string>",
"promotion_type": "discount",
"reason": "<string>",
"suggestion": "<string>"
}
]
}
}
Evaluate applicable & inapplicable promotions based on the specified cart.
curl --request GET \
--url https://staging.api.commercengine.io/api/v1/{store_id}/storefront/pos/carts/{id}/evaluate-promotions \
--header 'Authorization: Bearer <token>'
{
"message": "<string>",
"success": true,
"content": {
"applicable_promotions": [
{
"id": "<string>",
"name": "<string>",
"promotion_type": "discount",
"estimated_discount": 123,
"savings_message": "<string>"
}
],
"inapplicable_promotions": [
{
"id": "<string>",
"name": "<string>",
"promotion_type": "discount",
"reason": "<string>",
"suggestion": "<string>"
}
]
}
}
Access token
Cart Id
Was this page helpful?