Error codes

test_key_referrals_unavailable

Test keys can't reach referrals yet

HTTP 403

Test keys (sa_gap_test_... or sa_test_...) can't reach the referral and analytics operations until the referral sandbox opens; until then they work only with the membership plan operations, so use a live key for referral and analytics calls. Once it opens, a test key reads and writes sandbox referrals only, which reach no borrower and are never billed, and a live key never sees them.

The problem body

Sent as application/problem+json, with the request id in request_id and the X-Request-Id header. Branch on code: the error and detail sentences can change, and some operations add members of their own.

Example problem
{
  "error": "Test keys can't reach referrals yet",
  "code": "test_key_referrals_unavailable",
  "type": "https://secondappraisal.com/developers/errors/test_key_referrals_unavailable",
  "title": "Test keys can't reach referrals yet",
  "status": 403,
  "detail": "Test keys can't reach referrals yet",
  "instance": "/api/gap/v1/referrals",
  "request_id": "req_4f9a2c7e1b8d4a6f9c3e2b1a7d5f8e0c"
}

Operations that can send it