Skip to main content

deleteDiscountScheme

Requires permission products:discount:delete.

Deletes a discount scheme together with its usage history and cascading rules. Needs the discounts delete permission.

Errors: a failed call returns a GraphQL errors entry, not a field on the result, and data may be null or partial. Read the entry's extensions.code and message; every shape and code is in the Error reference.

Example:

mutation DeleteDiscountScheme($id: String!) {
deleteDiscountScheme(id: $id)
}

Variables:

{
"id": "string"
}

Response:

{
"data": {
"deleteDiscountScheme": true
}
}
deleteDiscountScheme(
id: String!
): Boolean!

Arguments​

deleteDiscountScheme.id ● String! non-null scalar​

The ID of the discount scheme.

Type​

Boolean scalar​

The Boolean scalar type represents true or false.