{
"priceableTargets": [
{
"targetId": "HS-HHS-20", // (1)
"targetType": "SKU", // (2)
"targetQuantity": 1, // (3)
"priceableFields": { // (4)
"standardPrice": {
"amount": 8,
"currency": "USD"
},
"basePrice": {
"amount": 8.99,
"currency": "USD"
}
},
"attributes": {} // (5)
},
{
"targetId": "HS-GG-20", // (1)
"targetType": "SKU", // (2)
"targetQuantity": 2, // (3)
"priceableFields": { // (4)
"standardPrice": {
"amount": 12,
"currency": "USD"
},
"basePrice": {
"amount": 11.99,
"currency": "USD"
},
"salePrice": {
"amount": 9.99,
"currency": "USD"
},
"contractPrice": {
"amount": 7.5,
"currency": "USD"
}
},
"attributes": {} // (5)
}
],
"priceLists": [], // (6)
"skipDetails": false // (7)
}
-
The target ID, this is the identifier of the entity being priced. Typically, this is either the SKU or pricing key.
-
The target type, this declares how the entity is being identified. This is set to
SKU
orPRICING_KEY
, seeCartPricingTargetType
. -
The quantity of the target entity, this informs the pricing service of when price data tiers may apply during best price calculations.
-
Optional details for priceable fields on the cart item, each of these entries are keyed by their type and contain the best price based on their type and currency. Possible pricing types include
standardPrice
,basePrice
,salePrice
, etc.; to see all the out-of-box priceable types, seePricingFields
. -
Additional attributes that are passed to the pricing service.
-
Optional list of prefetched
PriceListRef
details to price against. -
Flag that determines whether or not to return the
PriceTypeDetails
on thePriceInfos
response. These details breakdown the best prices per pricing type and include details for all the potential pricelists of that type.