Validate Promotions
Enables you to validate a cart’s promotions - coupon codes and implicit promotions - for specified item IDs.
https://prod01-apigw.{customer_name}.fabric.zone
Headers
The x-site-context
header is a JSON object that contains information about the source you wish to pull from. The mandatory account
is the 24 character identifier found in Copilot. The channel
(Sales channel ID), stage
(environment name), and date
attributes can be used to further narrow the scope of your data source.
Body
The item details. At least one item must be specified.
True
indicates a logged in user and False
indicates guest user.
The 24 character system-generated ID of the logged-in user. This is auto-generated based on the Authorization Token (JWT token from the Login API) specified in the Headers.
The coupon codes applied by the user.
Response
True indicates the cart validation is successful and false indicates otherwise.
The item details.
The basic details (such as promoId, promoTitle, and type) of all the discounts applied to the cart.
The additional attributes of the discounts applied to the cart such as discount ID, unit, and value of discount, along with the basic details.
Was this page helpful?