Skip to main content

orderDiscountUpdate Mutation

Update discount for the order.

Requires the MANAGE_ORDERSpermission.
orderDiscountUpdate(
discountId: ID!
input: OrderDiscountCommonInput!
): OrderDiscountUpdate
Details
type OrderDiscountUpdate {
order: Order
orderErrors: [OrderError!]! @deprecated
errors: [OrderError!]!
}

Arguments

discountId ● ID!

ID of a discount to update.

input ● OrderDiscountCommonInput!

Fields required to update a discount for the order.

Type

OrderDiscountUpdate

Update discount for the order.

Requires the MANAGE_ORDERSpermission.