POST

https://prod01-apigw.{customer_name}.fabric.zone

/
api-price
/
promo
/
validate

Headers

x-site-context
string
required

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

application/json
items
object[]
required

The item details. At least one item must be specified.

isLoggedIn
boolean

True indicates a logged in user and False indicates guest user.

userId
string

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.

promoCodes
string[]

The coupon codes applied by the user.

Response

200 - application/json
isSuccess
boolean

True indicates the cart validation is successful and false indicates otherwise.

items
object[]

The item details.

appliedDiscounts
object[]

The basic details (such as promoId, promoTitle, and type) of all the discounts applied to the cart.

discounts
object[]

The additional attributes of the discounts applied to the cart such as discount ID, unit, and value of discount, along with the basic details.