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/carts/{id}/evaluate-coupons \
--header 'Authorization: Bearer <token>'
{
"message": "<string>",
"success": true,
"content": {
"applicable_coupons": [
{
"id": "<string>",
"name": "<string>",
"coupon_type": "discount",
"coupon_code": [
"<string>"
],
"estimated_discount": 123,
"savings_message": "<string>"
}
],
"inapplicable_coupons": [
{
"id": "<string>",
"name": "<string>",
"coupon_type": "discount",
"coupon_code": [
"<string>"
],
"reason": "<string>",
"suggestion": "<string>"
}
]
}
}
Evaluate applicable & inapplicable coupons based on the specified cart.
curl --request GET \
--url https://staging.api.commercengine.io/api/v1/{store_id}/storefront/carts/{id}/evaluate-coupons \
--header 'Authorization: Bearer <token>'
{
"message": "<string>",
"success": true,
"content": {
"applicable_coupons": [
{
"id": "<string>",
"name": "<string>",
"coupon_type": "discount",
"coupon_code": [
"<string>"
],
"estimated_discount": 123,
"savings_message": "<string>"
}
],
"inapplicable_coupons": [
{
"id": "<string>",
"name": "<string>",
"coupon_type": "discount",
"coupon_code": [
"<string>"
],
"reason": "<string>",
"suggestion": "<string>"
}
]
}
}
Access token
Cart Id
Was this page helpful?