HTTP status 409. Only the Affinity app gets this code.
The organization has Live orders that a pharmacy is still filling. Test orders do not block deletion.
Recovery
Wait until each submitted or processing Live order ships or is cancelled. Then delete the organization again.
Branch on code, not on the text of detail. Give Affinity the requestId when you report a problem.