Deletes a sale.
id
ID of a sale to delete.
Returns SaleDelete .
mutation ($id: ID!) { saleDelete(id: $id) { discountErrors { field message code } sale { id name type value startDate endDate currency minCheckoutItemsQuantity saleType } } }
3
{ "id": "aWQ6NjM=" }
{ "saleDelete": { "discountErrors": [ { "field": "string", "message": "string", "code": "ALREADY_EXISTS" } ], "sale": { "id": "aWQ6OTI=", "name": "Acme", "type": "FIXED", "value": 10.23, "startDate": "2022-03-06T08:23:45.000Z", "endDate": "2022-03-06T08:23:45.000Z", "currency": "string", "minCheckoutItemsQuantity": 42, "saleType": "SHIPPING" } } }