Product delete is returning error

We seem to now be unable to delete products.

As an example, we created a new product and received the following response:

{'data': {'product_create': {'request_id': '67d184ca420356532e7497d2', 'complexity': 10, 'product': {'id': 'UHJvZHVjdEluZm86MzI5Mjc5MTU4', 'sku': '6861433145737', 'barcode': '6861433145737', 'country_of_manufacture': '', 'created_at': '2025-03-12T12:57:46', 'customs_description': None, 'customs_value': '0.0000', 'dimensions': {'weight': '0.0031 lb', 'length': None, 'width': None, 'height': None}, 'dropship': False, 'ignore_on_invoice': False, 'tariff_code': '0', 'updated_at': '2025-03-12T12:57:46', 'vendors': [{'vendor_id': 'VmVuZG9yOjk4MjEzNg==', 'vendor_sku': '6861433145737'}], 'warehouse_products': [{'id': 'UHJvZHVjdDo0Nzk1ODY3Mzc=', 'active': True, 'allocated': 0, 'available': 0, 'backorder': 0, 'created_at': '2025-03-12T12:57:46', 'in_tote': 0, 'inventory_bin': ' ', 'inventory_overstock_bin': ' ', 'on_hand': 0, 'non_sellable_quantity': 0, 'sku': '6861433145737', 'price': '0.0000', 'updated_at': '2025-03-12T12:57:46', 'value': '0.0000', 'value_currency': 'USD', 'warehouse_id': 'V2FyZWhvdXNlOjEwOTY1Mg==', 'warehouse_identifier': 'Primary'}], 'virtual': False}}}, 'extensions': {'throttling': {'estimated_complexity': 10, 'cost': 10, 'cost_detail': {'product_create': {'items_count': 0, 'cost': 10, 'total_cost': 10, 'fields': {}}}, 'user_quota': {'credits_remaining': 1992, 'max_available': 2002, 'increment_rate': 30}}}}

We then make the following call:

mutation ($data: DeleteProductInput!) {
  product_delete(data: $data) {
    request_id
    complexity
  }
}

with variables: {'data': {'sku': '6861433145737'}}

The response is:

{'errors': [{'message': 'Unexpected Error', 'operation': 'product_delete', 'field': 'product_delete', 'request_id': '67d184dadf01ba1b5c0504b5', 'code': 22}], 'data': {'product_delete': None}, 'extensions': {'throttling': {'estimated_complexity': 10, 'cost': 10, 'cost_detail': {'product_delete': {'items_count': 0, 'cost': 10, 'total_cost': 10, 'fields': {}}}, 'user_quota': {'credits_remaining': 2002, 'max_available': 2002, 'increment_rate': 30}}}}

This was part of a small integration test suite that we were running to verify payloads that had previously worked.

Is there something wrong with our calls?

Hi @david

There seems to be a bug, I will forward this to engineering.

Thank you