Skip to the page

Search the titles, headings and text of every guide and API reference page.

    Chapters

    Sandbox

    List sandbox scenarios

    GET/api/v1/sandbox/scenarios

    The scripted payer scenarios a test key can trigger. Send a scenario ID as the subscriber member_id of an eligibility check made with a test key to get that scenario. Any other member ID gets the default scenario.

    Needs a key with read permission.

    Request

    This request takes no parameters and no body.

    Response

    Every scenario, and what any other member ID gets. Status 200.

    Response fields
    NameTypeDescription
    dataarray of object
    data[].idstringSend this as the subscriber member_id of a test-mode check to get the scenario.
    data[].objectstringAlways `sandbox_scenario`.
    data[].use_asstringAlways `member_id`.
    data[].descriptionstring
    data[].outcomestringWhat the payer does: answers, rejects or is unavailable.One of: `answered`, `rejected`, `payer_unavailable`.
    data[].coversarray of stringThe products the scenario applies to.Each item is one of: `eligibility`.
    next_cursorvaluePass as cursor to get the next page; null when there is no next page.
    notestringWhat any other member ID gets.

    Errors

    Errors
    HTTP statusCodeWhat it means
    401UNAUTHORIZEDA valid API key is required. Send it as "Authorization: Bearer <key>".
    403PERMISSION_DENIEDThis API key is not allowed to do that.
    422INVALID_REQUESTThe request is not valid.
    429TOO_MANY_REQUESTSToo many requests of this kind lately. Wait, then try again.
    504TIMEOUTThe request took too long. Send it again with the same Idempotency-Key and body after Retry-After seconds: a 409 means it is still finishing (wait and send again), and any other answer is final. If this 504 comes back, find what the request made by listing with ?idempotency_key=<the key>.
    500INTERNALSomething went wrong on our side. Quote the request ID if you contact us.

    Example

    Example request

    Shell
    curl "https://app.myclaimhouse.com/api/v1/sandbox/scenarios" \
      -H "Authorization: Bearer $CLAIMHOUSE_KEY"

    Example response: 200

    JSON
    {
      "data": [
        {
          "id": "CH-ACTIVE-FULL",
          "object": "sandbox_scenario",
          "use_as": "member_id",
          "description": "Active coverage, full benefits returned, with 18 procedure rows",
          "outcome": "answered",
          "covers": [
            "eligibility"
          ]
        },
        {
          "id": "CH-MAX-NEARLY-USED",
          "object": "sandbox_scenario",
          "use_as": "member_id",
          "description": "$120 of the annual maximum remaining",
          "outcome": "answered",
          "covers": [
            "eligibility"
          ]
        },
        {
          "id": "CH-MISSING-TOOTH",
          "object": "sandbox_scenario",
          "use_as": "member_id",
          "description": "Missing tooth clause applies to implant codes (D6xxx)",
          "outcome": "answered",
          "covers": [
            "eligibility"
          ]
        },
        {
          "id": "CH-INACTIVE",
          "object": "sandbox_scenario",
          "use_as": "member_id",
          "description": "Coverage ended: inactive, with its dates and little else",
          "outcome": "answered",
          "covers": [
            "eligibility"
          ]
        },
        {
          "id": "CH-NOT-FOUND",
          "object": "sandbox_scenario",
          "use_as": "member_id",
          "description": "AAA 75: subscriber not found",
          "outcome": "rejected",
          "covers": [
            "eligibility"
          ]
        },
        {
          "id": "CH-DEPENDENT",
          "object": "sandbox_scenario",
          "use_as": "member_id",
          "description": "AAA 75: a dependent sent as the subscriber, with two fixes (the plan holder, the member ID format)",
          "outcome": "rejected",
          "covers": [
            "eligibility"
          ]
        },
        {
          "id": "CH-DOB-MISMATCH",
          "object": "sandbox_scenario",
          "use_as": "member_id",
          "description": "AAA 71: date of birth does not match",
          "outcome": "rejected",
          "covers": [
            "eligibility"
          ]
        },
        {
          "id": "CH-PAYER-DOWN",
          "object": "sandbox_scenario",
          "use_as": "member_id",
          "description": "AAA 42: the payer is unavailable, nothing to change",
          "outcome": "payer_unavailable",
          "covers": [
            "eligibility"
          ]
        },
        {
          "id": "CH-GENERAL-ONLY",
          "object": "sandbox_scenario",
          "use_as": "member_id",
          "description": "Active, a general answer with most detail not returned",
          "outcome": "answered",
          "covers": [
            "eligibility"
          ]
        },
        {
          "id": "CH-271-DOWN",
          "object": "sandbox_scenario",
          "use_as": "member_id",
          "description": "AAA 79 at the payer level: the connection to the payer refused the request, nothing to change",
          "outcome": "payer_unavailable",
          "covers": [
            "eligibility"
          ]
        },
        {
          "id": "CH-271-METLIFE",
          "object": "sandbox_scenario",
          "use_as": "member_id",
          "description": "MetLife dental benefits, as a real payer answered in test mode (its own 2024 plan dates)",
          "outcome": "answered",
          "covers": [
            "eligibility"
          ]
        },
        {
          "id": "CH-271-UHC",
          "object": "sandbox_scenario",
          "use_as": "member_id",
          "description": "UnitedHealthcare dental benefits, as a real payer answered in test mode (its own 2024 plan dates)",
          "outcome": "answered",
          "covers": [
            "eligibility"
          ]
        },
        {
          "id": "CH-271-CIGNA",
          "object": "sandbox_scenario",
          "use_as": "member_id",
          "description": "Cigna dental benefits, as a real payer answered in test mode (its own 2024 plan dates)",
          "outcome": "answered",
          "covers": [
            "eligibility"
          ]
        },
        {
          "id": "CH-271-AMERITAS",
          "object": "sandbox_scenario",
          "use_as": "member_id",
          "description": "Ameritas dental benefits, as a real payer answered in test mode (its own 2024 plan dates)",
          "outcome": "answered",
          "covers": [
            "eligibility"
          ]
        },
        {
          "id": "CH-271-ANTHEM",
          "object": "sandbox_scenario",
          "use_as": "member_id",
          "description": "Anthem Blue Cross dental benefits, as a real payer answered in test mode (its own 2024 plan dates)",
          "outcome": "answered",
          "covers": [
            "eligibility"
          ]
        }
      ],
      "note": "Any other member ID with a test key returns CH-ACTIVE-FULL.",
      "next_cursor": null
    }