# Get Bankruptcy

Returns all records from the Bankruptcy table for the given user/client. The response contains key-value pairs.

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "version": "1.0",
    "title": "Services: ICE Product and Pricing Engine (ICE PPE)",
    "description": "Use the ICE PPE (formerly known as Encompass Product and Pricing Service (EPPS) APIs to search for best-fit program and pricing information.\r\n\r\nTo retrieve rates with ICE PPE APIs, the Encompass user must be mapped to an ICE PPE user. To establish this mapping, use the Get User Mapping and Map EPPS User APIs.\r\n\r\n\r\n> Requirements\r\n> \r\n> You must have an account set up with ICE PPE to return rates using the ICE PPE APIs. For information about setting up an account, see the Encompass online help.\r\n\r\nEncompass Developer Connect provides the following sets of ICE PPE APIs:\r\n\r\n- **User Management APIs** - Use these APIs to manage the mapping between ICE PPE users and Encompass users. \r\n\r\n- **Rates APIs** - These APIs retrieve loan programs based on given criteria, return eligible rates for a specified program, and select rates. Use them to determine whether a given program for a loan is eligible for Trade and then fetch Loan-level Price Adjustments (LLPA) and Service Release Premium (SRP) details. \r\n\r\n- **Guidelines API** - This API returns program guidelines for a specified program ID. \r\n\r\n- **Lookups APIs** - These APIs search for certain types of loan information across the Product and Pricing system. "
  },
  "servers": [
    {
      "url": "https://api.elliemae.com",
      "description": "Production"
    },
    {
      "url": "https://concept.api.elliemae.com",
      "description": "UAT"
    }
  ],
  "paths": {
    "/epps/v2/lookups/bankruptcy": {
      "get": {
        "tags": [
          "Lookups"
        ],
        "summary": "Get Bankruptcy",
        "description": "Returns all records from the Bankruptcy table for the given user/client. The response contains key-value pairs.",
        "operationId": "bankruptcy",
        "parameters": [
          {
            "name": "Authorization",
            "in": "header",
            "description": "Bearer token",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                },
                "examples": {
                  "Example 1": {
                    "value": [
                      {
                        "key": "Never or none in the last 7 years",
                        "value": 0
                      },
                      {
                        "key": "None in last 60 months",
                        "value": 60
                      },
                      {
                        "key": "None in last 48 months",
                        "value": 48
                      },
                      {
                        "key": "None in last 36 months",
                        "value": 36
                      },
                      {
                        "key": "None in last 24 months",
                        "value": 24
                      },
                      {
                        "key": "None in last 18 months",
                        "value": 18
                      },
                      {
                        "key": "None in last 12 months",
                        "value": 12
                      },
                      {
                        "key": "Currently in Bankruptcy",
                        "value": 0
                      },
                      {
                        "key": "None in last 6 months",
                        "value": 6
                      },
                      {
                        "key": "Within last 6 months",
                        "value": 1
                      }
                    ]
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request"
          }
        },
        "servers": [
          {
            "url": "https://api.elliemae.com",
            "description": "Production"
          },
          {
            "url": "https://concept.api.elliemae.com",
            "description": "UAT"
          }
        ]
      }
    }
  },
  "x-readme": {
    "explorer-enabled": false,
    "proxy-enabled": true
  },
  "_id": {
    "buffer": {
      "0": 105,
      "1": 39,
      "2": 114,
      "3": 95,
      "4": 186,
      "5": 123,
      "6": 51,
      "7": 64,
      "8": 113,
      "9": 88,
      "10": 166,
      "11": 213
    }
  }
}
```