HTTP status 403. An API key request can get this code.
Your platform does not have Live access, so it cannot give Live access to a practice.
Recovery
An admin adds a payment method in Settings → Billing and clicks Turn on Live. Keep working in Test.
Branch on code, not on the text of detail. Give Affinity the requestId when you report a problem.