Skip to main content

ProductPrice

Calculated product price with comprehensive pricing information and business rules applied.

Contains the final calculated price for a product including base pricing, discounts, tax calculations, and all applicable business rules. Used for displaying prices to customers and processing orders.

type ProductPrice {
productId: Int!
type: PriceElementType!
discountType: PriceDiscountType!
list: Float
cost: Float
net: Float
gross: Float
discount: IDiscount
taxCode: Taxcode
quantity: Int!
}

Fields

ProductPrice.productId ● Int! non-null scalar

Unique identifier of the product this price calculation applies to.

Links the calculated price to a specific product in the catalog, enabling product-specific pricing and inventory management.

ProductPrice.type ● PriceElementType! non-null enum

Classification of the price element used in the calculation.

Indicates the source and type of pricing applied, such as bulk pricing, pricesheet pricing, or default pricing. Used for price transparency and calculation auditing.

ProductPrice.discountType ● PriceDiscountType! non-null enum

Method used for discount calculation and application.

Specifies how discounts were calculated and applied to the base price, enabling proper price display and calculation transparency.

ProductPrice.list ● Float scalar

Base list price before discounts and calculations.

The standard selling price used as the foundation for all pricing calculations. May be modified by discounts, volume pricing, or customer-specific rules.

ProductPrice.cost ● Float scalar

Cost price for margin calculations and business analysis.

The cost per unit for this product, used for margin analysis and pricing decisions. May vary based on quantity and supplier agreements.

ProductPrice.net ● Float scalar

Net price after discounts but before tax calculations.

The calculated price after applying all discounts and business rules but before adding taxes. Used for tax calculations and price display.

ProductPrice.gross ● Float scalar

Final gross price including all calculations and applicable taxes.

The final price that should be charged to the customer, including all discounts, business rules, and tax calculations. This is the price used for order processing.

ProductPrice.discount ● IDiscount interface

Discount record applied to this price calculation.

Contains details of any discount or bulk pricing rule that was applied during the price calculation. Used for price transparency and promotional tracking.

ProductPrice.taxCode ● Taxcode enum

Tax classification code applied to this product price.

Indicates the tax treatment and rate applied to this product based on its category and regional regulations. Used for tax calculations and compliance.

ProductPrice.quantity ● Int! non-null scalar

Quantity of the product used for this price calculation.

The number of units for which this price was calculated. Used for volume discounts, bulk pricing tiers, and total order calculations. Minimum value is 1.

Returned By

priceCalculate query ● priceDefault query ● priceExplain query

Member Of

Product object