---
updatedAt: 2025-11-11T00:10:09.000Z
agentTools:
  projectIndex: https://docs.interswitchgroup.com/v1.1/llms.txt
---

# Get Loan History

This endpoint will provide clients with the loans that the user is serving or has served.

### Get Loan History

| Field | Field Name        | Description                                                              |
| ----- | ----------------- | ------------------------------------------------------------------------ |
| 1     | responseCode      | The response code                                                        |
| 2     | responseMessage   | response message                                                         |
| 3     | data              | \[Array] of the loans                                                    |
| 3a    | offerCode         |                                                                          |
| 3b    | providerloanId    |                                                                          |
| 3c    | amount            |                                                                          |
| 3d    | interest          |                                                                          |
| 3e    | provider          |                                                                          |
| 3f    | status            |                                                                          |
| 3g    | statusDescription |                                                                          |
| 3h    | tenure            |                                                                          |
| 3i    | acceptedDate      |                                                                          |
| 3j    | dueDate           |                                                                          |
| 4     | count             | The Number of Records that is available within the specified date range. |

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "ipg",
    "version": "1.1"
  },
  "servers": [
    {
      "url": "https://sandbox.interswitchng.com"
    }
  ],
  "components": {
    "securitySchemes": {
      "sec0": {
        "type": "oauth2",
        "flows": {}
      }
    }
  },
  "security": [
    {
      "sec0": []
    }
  ],
  "paths": {
    "/lending-service/api/v1/loans/{customerId}": {
      "get": {
        "summary": "Get Loan History",
        "description": "This endpoint will provide clients with the loans that the user is serving or has served.",
        "operationId": "get-loan-history",
        "parameters": [
          {
            "name": "customerId",
            "in": "path",
            "description": "The Email or Mobile Number of the user for which history data is being retrieved",
            "required": true,
            "schema": {
              "type": "string",
              "default": "2348123456789"
            }
          },
          {
            "name": "startDate",
            "in": "query",
            "description": "The Start Date/Time to be used as the filter for the data. This will specify the lower bound of the date range.",
            "required": true,
            "schema": {
              "type": "string",
              "default": "2019-02-02"
            }
          },
          {
            "name": "endDate",
            "in": "query",
            "description": "The End Date/Time to be used as the filter for the data. This will specify the upper bound of the date range.",
            "required": true,
            "schema": {
              "type": "string",
              "default": "2019-02-28"
            }
          },
          {
            "name": "channelCode",
            "in": "query",
            "description": "The Code of the channel for which this request is originating.",
            "required": true,
            "schema": {
              "type": "string",
              "default": "QTUSSD"
            }
          },
          {
            "name": "pageNumber",
            "in": "query",
            "description": "The Number of the page from which the loan history records should be pulled.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32",
              "default": 1
            }
          },
          {
            "name": "pageSize",
            "in": "query",
            "description": "The Maximum number of Records to be contained on a page of records.",
            "schema": {
              "type": "integer",
              "format": "int32",
              "default": 100
            }
          },
          {
            "name": "Authorization",
            "in": "header",
            "schema": {
              "type": "string",
              "default": "Bearer eyJhbGciOiJSUzI1NiJ9.eyJhdWQiOlsiY2FyZGxlc3Mtc2VydmljZSIsImluY29nbml0byIsImlzdy1jb2xsZWN0aW9ucyIsImlzdy1jb3JlIiwiaXN3LWxlbmRpbmctc2VydmljZSIsImlzdy1wYXltZW50Z2F0ZXdheSIsInBhc3Nwb3J0IiwicGF5bWVudC1zZXJ2aWNlIiwicHJvamVjdC14LW1lcmNoYW50IiwidmF1bHQiXSwibWVyY2hhbnRfY29kZSI6Ik1YMTg3IiwicHJvZHVjdGlvbl9wYXltZW50X2NvZGUiOiIwMDE2NDYzOTg1NCIsInJlcXVlc3Rvcl9pZCI6IjAwMTE3NjE0OTkyIiwic2NvcGUiOlsicHJvZmlsZSJdLCJqdGkiOiIzNTFjNDQ5MS01YzcwLTRhOTEtODRiZS0zZjNjY2Q1YzE2Y2MiLCJwYXlhYmxlX2lkIjoiMjMyNCIsImNsaWVudF9pZCI6IklLSUE5NjE0QjgyMDY0RDYzMkU5QjY0MThERjM1OEE2QTRBRUE4NEQ3MjE4IiwicGF5bWVudF9jb2RlIjoiMDQyNTk0MTMwMjQ2In0.P2mUITLA2bsmMryCyuVwDXK-4ozcRYtEKIN1t-qRPZaUStKleLsgxQxJqXv0EZ0CIYbAECw28AeJmbiBtosVSQ824unhfYTyhRCAt1olO_pNwf6PPmMNVTUO5q7F1b3CQPKP5D3VmNMw3MrHUzTzLwqMMzTIAYWf3V-7TEuHBOVzTsOtmuV-j63qASkFGsn_3x-TwgPVeOZ-INnDtXnSCSwQKG10q0_QE7B-ke2v0Up0vxXJ4wTsX8qWm6sJ5Bn_GU260qNPnVCip93xhzAHv7e__ONfeTMdDVPypQ0lyKgcR0FcBrJqONz6yifuu2BfoGeDkXV1cyZFhZg_xwiFYw"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "200",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{\n  “responseCode”: “00”,\n  “count”: 2,\n  “data”: [\n    {\n      “id”: 32,\n      “offerId”: “OFFER1497358087100”,\n      “customerId”: “2348135446702”,\n      “providerId”: 3,\n      “providerCode”: “MKT”,\n      “channelId”: 1,\n      “channelCode”: “FBNMOBILE”,\n      “status”: “Accepted”,\n      “amount”: 100000,\n      “amountPayable”: 110000,\n      “tenure”: 30,\n      “dueDate”: 1499950113171,\n      “terms”: “Please read the terms and conditions on https://onefi.com/terms”,\n      “currency”: “566”,\n      “customerDebitMethod”: 2,\n      “customerCreditMethod”: 4,\n      “providerLoanId”: “OFFER1497358087100”,\n      “dateCreated”: 1497361713217\n    },\n    {\n      “id”: 30,\n      “offerId”: “OFFER1497351015100”,\n      “customerId”: “2348135446702”,\n      “providerId”: 3,\n      “providerCode”: “MKT”,\n      “channelId”: 1,\n      “channelCode”: “FBNMOBILE”,\n      “status”: “Accepted”,\n      “amount”: 100000,\n      “amountPayable”: 110000,\n      “tenure”: 30,\n      “dueDate”: 1499943066892,\n      “terms”: “Please read the terms and conditions on https://onefi.com/terms”,\n      “currency”: “566”,\n      “customerDebitMethod”: 2,\n      “customerCreditMethod”: 4,\n      “providerLoanId”: “OFFER1497351015100”,\n      “dateCreated”: 1497354667123\n    }\n  ]\n}"
                  }
                }
              }
            }
          },
          "400": {
            "description": "400",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {}
                }
              }
            }
          }
        },
        "deprecated": false,
        "security": []
      }
    }
  },
  "x-readme": {
    "headers": [],
    "explorer-enabled": true,
    "proxy-enabled": true
  },
  "x-readme-fauxas": true
}
```