List of applications

This endpoint retrieves a list of applications, providing key details such as the application ID, creation date, status, and DBA (Doing Business As) name of the applicant.



Request

Endpoint



Required Key

bearer tokenThe auth token returned by /oauth2/token

Query Parameters (Optional)

ParameterTypeDescription
statusStringFilter applications by status (e.g., DRAFT, SUBMITTED, IN_REVIEW, APPROVED, DECLINED).
createdFromDateRetrieve applications created on or after this date (ISO 8601 format).
createdToDateRetrieve applications created on or before this date (ISO 8601 format).
sortByStringSort results by a field (createdOn, status, dba).
sortOrderStringSort order, either asc for ascending or desc for descending.
pageSizeIntegerNumber of results per page (default: 10).
pageNumberIntegerThe page number to retrieve for paginated results.



Response

Field Definitions

Field NameTypeDescription
idStringThe unique identifier of the application.
createdOnStringThe date and time when the application was created (in ISO 8601 format).
statusStringThe current status of the application (DRAFT, SUBMITTED, etc.).
dbaStringThe Doing Business As name associated with the application.
totalItemCountIntegerTotal number of items available across all pages.
pageNumberIntegerThe current page number of the result set.
pageSizeIntegerThe number of items per page.
rowsArrayArray containing the list of applications. Each entry includes the fields below.
- idStringThe unique identifier of the application.
- createdOnStringThe creation date of the application.
- statusStringThe status of the application.
- dbaStringThe Doing Business As name for the applicant.


❗️

Notes

  • Pagination is applied to the results. Use pageSize and pageNumber to navigate through the results.
  • Filtering by status or date is optional but recommended for large datasets.


Payload Examples

Request

cURL Request Example

curl --request GET \
     --url "https://api-sandbox.flex-charge.com/v1/application/list?status=SUBMITTED&pageSize=5&pageNumber=1" \
     --header 'Authorization: bearer {the token returned by /oauth2}' \
     --header 'accept: application/json'

Response

JSON Example for Paginated List

{
  "totalItemCount": 25,
  "pageNumber": 1,
  "pageSize": 5,
  "rows": [
    {
      "id": "application_123456",
      "createdOn": "2024-11-01T10:30:00Z",
      "status": "SUBMITTED",
      "dba": "Tech Innovators"
    },
    {
      "id": "application_654321",
      "createdOn": "2024-11-02T12:45:00Z",
      "status": "DRAFT",
      "dba": "Example Corp"
    },
    {
      "id": "application_789012",
      "createdOn": "2024-11-03T14:20:00Z",
      "status": "IN_REVIEW",
      "dba": "Sample Business"
    },
    {
      "id": "application_345678",
      "createdOn": "2024-11-04T16:10:00Z",
      "status": "APPROVED",
      "dba": "Digital Edge"
    },
    {
      "id": "application_901234",
      "createdOn": "2024-11-05T18:55:00Z",
      "status": "DECLINED",
      "dba": "Startup Solutions"
    }
  ]
}

Example for No Results

{
  "totalItemCount": 0,
  "pageNumber": 1,
  "pageSize": 5,
  "rows": []
}


Notes

  • Use filters (e.g., status, createdFrom, createdTo) to narrow down results and optimize performance.
  • Ensure you implement pagination correctly to handle large datasets efficiently.