HTTP status 409. An API key request can get this code.
Another active practice of this platform already uses this externalId.
Recovery
Use the existing prac_ ID in data.practiceId, or send a different externalId. No practice was created or changed.
Branch on code, not on the text of detail. Give Affinity the requestId when you report a problem.