HTTP status 403. An API key request can get this code.
Only a Live API key can turn a practice's Live access on or off.
Recovery
If your platform does not have Live access, an admin adds a payment method in Settings → Billing and clicks Turn on Live. Then send the request with a Live key (sk_live_…).
Branch on code, not on the text of detail. Give Affinity the requestId when you report a problem.