Skip to main content

orderDiscountAdd Mutation

Adds discount to the order.

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

Arguments​

input ● OrderDiscountCommonInput!​

Fields required to create a discount for the order.

orderId ● ID!​

ID of an order to discount.

Type​

OrderDiscountAdd​

Adds discount to the order.

Requires the MANAGE_ORDERSpermission.