Skip to main content

tenderUpdateDiscount

Update discount information for an existing tender.

Applies or modifies discounts on the tender, which can be percentage-based or fixed amounts. Automatically recalculates tender totals and pricing based on the discount changes.

Possible errors:

  • TENDER_NOT_FOUND: Tender with the specified ID does not exist
  • TENDER_UPDATE_DISCOUNT_ERROR: Failed to update the tender discount
  • FORBIDDEN: Insufficient permissions to update tenders

AUTH: Role=[order.OWNER,order.EDITOR]

tenderUpdateDiscount(
id: String!
input: TenderDiscountInput!
): Tender!

Arguments

tenderUpdateDiscount.id ● String! non-null scalar

Unique identifier of the tender to update discount for.

Must be a valid string representing an existing tender in the system.

tenderUpdateDiscount.input ● TenderDiscountInput! non-null input

Discount information including type, amount, and applicable conditions.

Contains discount details to be applied to the tender for pricing calculations.

Type

Tender object

Comprehensive tender entity representing a potential order in the system.

Tenders are draft orders that contain all necessary information for order processing including customer details, items, pricing, addresses, payment methods, and shipping information. They can be modified, processed into orders, or deleted as needed.