HTTP status 403. An API key request can get this code.
Live is turned off, so new Live orders and new Live API keys are refused. Live orders need Live access on the practice and its platform. Existing keys still read records, cancel orders and manage webhooks with their existing permissions.
Recovery
Read liveEnabled from GET /v1/account first. If false, an admin adds a payment method and turns on Live in Billing. Once your platform has Live access, use a Live platform key to PATCH /v1/practices/{practiceId} with liveEnabled: true. Test is always available.
Branch on code, not on the text of detail. Give Affinity the requestId when you report a problem.