qbXML status code 3160

Error

QuickBooks refused to delete the record.

What QuickBooks says

Cannot delete the object specified by the id = "%1". %4

QuickBooks fills in the marked parts when it answers: usually the value, the field, the kind of record and a longer explanation of its own.

It arrives on the response element as statusCode="3160" statusSeverity="Error", with this text in statusMessage.

With QuBe Sync's API

QuBe Sync reads QuickBooks' response for you. When CustomerAdd gets this code, your webhook receives this JSON, with the marked parts filled in:

Webhook state and error
{
  "error": {
    "debug_message": null,
    "error_code": 3160,
    "error_type": "quickbooks_business_error",
    "hresult": null,
    "message": "Cannot delete the object specified by the id = \"%1\". %4",
    "user_message": "QuickBooks won't allow this record to be deleted. QuickBooks said: Cannot delete the object specified by the id = \"%1\". %4"
  },
  "state": "error"
}

Wording read from QuickBooks Enterprise Solutions 24.0 (R21_80).