Skip to main content
POST
/
commerce
/
catalog
/
storefront
/
products
/
{productCode}
/
validateDiscounts
Error
A valid request URL is required to generate request examples
{
  "applicableDiscounts": [
    {
      "discountId": 123,
      "expirationDate": "2023-11-07T05:31:56Z",
      "name": "<string>",
      "friendlyDescription": "<string>",
      "impact": 123
    }
  ]
}

Authorizations

Authorization
string
header
required

JWT Authorization header using the Bearer scheme.

Path Parameters

productCode
string
required

Query Parameters

variationProductCode
string
customerAccountId
integer<int32>

Customer Id may be set in the querystring or in the user claims bag if the caller context is a shopper.

allowInactive
boolean
skipInventoryCheck
boolean
default:false
responseFields
string

limits which fields are returned in the response body

Body

application/json

Discount Selections

discountIds
integer<int32>[] | null

Discount Ids

Response

Success

Provides a summary (more accurately it is a container) for valid discounts for potentially valid discounts for a product

applicableDiscounts
object[] | null

Applicable/Valid Discounts