HTTP status 404. An API key request can get this code.
The record or route does not exist, belongs to another organization or mode, or the path ID names another resource type.
Recovery
Check the resource type, ID, key organization and Test or Live mode. Use ord_ IDs for orders and whe_ IDs from GET /v1/webhook-endpoints for endpoints. Catalog practiceId must name your own practice or a child of your platform. Send IDs exactly as Affinity returns them. If the response includes issues, read the path field.
Branch on code, not on the text of detail. Give Affinity the requestId when you report a problem.