Skip to main content

CalculateDiscountDto

What to work a discount out for.

input CalculateDiscountDto {
baseAmount: Float!
categoryId: String
currencyId: String
partnerId: String
productId: String
quantity: Int!
regionId: String
variantId: String
}

Fields​

CalculateDiscountDto.baseAmount ● Float! non-null scalar​

The amount before discount.

CalculateDiscountDto.categoryId ● String scalar​

The ID of the category.

CalculateDiscountDto.currencyId ● String scalar​

The ID of the currency of the amount.

CalculateDiscountDto.partnerId ● String scalar​

The ID of the partner.

CalculateDiscountDto.productId ● String scalar​

The ID of the product.

CalculateDiscountDto.quantity ● Int! non-null scalar​

The quantity.

CalculateDiscountDto.regionId ● String scalar​

The ID of the region of the sale.

CalculateDiscountDto.variantId ● String scalar​

The ID of the product variant.

Member Of​

calculateDiscount query