Skip to main content

saleUpdate Mutation

DEPRECATED

Use promotionUpdate mutation instead.

Updates a sale.

Requires the MANAGE_DISCOUNTSpermission.

Triggers the following webhook events:

  • SALE_UPDATED (async): A sale was updated.
  • SALE_TOGGLE (async): Optionally triggered when a sale is started or stopped.
saleUpdate(
id: ID!
input: SaleInput!
): SaleUpdate @deprecated
Show return type

Arguments

id ● ID!

ID of a sale to update.

input ● SaleInput!

Fields required to update a sale.

Type

SaleUpdate

Updates a sale.

Requires the MANAGE_DISCOUNTSpermission.

Triggers the following webhook events:

  • SALE_UPDATED (async): A sale was updated.
  • SALE_TOGGLE (async): Optionally triggered when a sale is started or stopped.