discountCreate
Create a new discount record with percentage-based pricing reductions.
Establishes discount rules for specific categories or products within pricesheets, enabling promotional pricing and customer-specific discounts. Used for marketing campaigns and pricing strategies.
Possible errors:
- DISCOUNT_CREATE_ERROR: Failed to create discount record
- DISCOUNT_VALIDATION_ERROR: Invalid discount data provided
- DISCOUNT_ALREADY_EXISTS_ERROR: Discount with similar criteria already exists
- UNAUTHENTICATED: Invalid or missing authentication
- FORBIDDEN: Insufficient permissions to create discounts
AUTH: Role=[pricing.OWNER]
discountCreate(
input: DiscountCreateInput!
): Discount!
Arguments
discountCreate.input
● DiscountCreateInput!
non-null input
Discount creation data including percentage values, category associations, pricesheet assignments, and effective dates.
Contains all necessary information to create a complete discount record with proper validation and business rules.
Type
Discount
object
Discount entity with category association.
Represents a discount in the system that can be associated with a specific category. Provides access to the category details for discount organization and application rules.