Skip to main content

discount

Retrieve detailed information about a specific discount record.

Returns comprehensive discount data including percentage values, category associations, pricesheet assignments, effective dates, and application rules. Used for discount management and pricing calculations.

Possible errors:

  • DISCOUNT_NOT_FOUND_ERROR: Discount with the specified ID does not exist
  • DISCOUNT_FETCH_ERROR: Failed to retrieve discount information
  • UNAUTHENTICATED: Invalid or missing authentication
  • FORBIDDEN: Insufficient permissions to access discount data

AUTH: Role=[pricing.OWNER,pricing.EDITOR,pricing.VIEWER]

discount(
id: String!
): Discount!

Arguments

discount.id ● String! non-null scalar

Unique identifier of the discount record to retrieve.

Must be a valid UUID format representing an existing discount in the system.

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.