Partner Program

View Details for a Specific Program

A user can view the program name and program type of a specific program, as long as the user has the program ID. To view these details, a user can initiate a GET request directed to the following endpoint:

https://cubi-sandbox-api.customersbank.com/consumerlending/v1/program/{id}

This request requires the additional data to be included in the path of the request.

Path Parameter Data Element Details:

NameTypeDescription
idstringrequiredFormat - uuid. Program id to retrieve

Example Request:

curl --request GET \
     --url https://cubi-sandbox-api.customersbank.com/consumerlending/v1/program/a3cf82e1-14ff-477a-9459-b1bf010a1b8e \
     --header 'accept: application/json'

A successful request will generate a response of 200 - Ok.

Example Response:

{
    "id": "a3cf82e1-14ff-477a-9459-b1bf010a1b8e",
    "name": "HIL",
    "programType": "HomeImprovement"
}

Response Data Element Details:

NameTypeDescription
idstringThe id of the Program
namestring | nullThe name of the Program
programTypestringOptions are: Other HomeImprovement

Error Handling:

Common errors will include:
400 – Bad Request
401 – Unauthorized
403 - Forbidden
404 – Not Found
422 – Unprocessable Content
500 – Internal Server Error

For guidance on troubleshooting error codes please consult the Error Code Handling section of this guide.


View Details for All Programs (with pagination)

Similar to the above request, a user has the ability to view the same level of details for all of their programs. This endpoint includes pagination which allows a user to request a subset of applications. To view these details, a user can initiate a GET request directed to the following endpoint:

https://cubi-sandbox-api.customersbank.com/consumerlending/v1/program

This request requires the additional data to be included in the query of the request.

Query Parameter Data Element Details:

NameTypeDescription
paginateResultsbooleanindicates whether the request should be paginated
pageint32indicates the page to return
perPageint32indicates how many items are on a page
sortOnstringindicates the attribute by which the data is sorted
sortAscendingstringindicates if the data is sorted in ascending or descending order

Example Request:

curl --request GET \
     --url 'https://cubi-sandbox-api.customersbank.com/consumerlending/v1/program?paginateResults=true&page=1&perPage=100' \
     --header 'accept: application/json'

A successful request will generate a response of 200 - Ok.

Example Response:

{
    "pageSize": 100,
    "pageOffset": 0,
    "totalPages": 1,
    "totalItemCount": 2,
    "items": [
        {
            "id": "a3cf82e1-14ff-477a-9459-b1bf010a1b8e",
            "name": "HIL",
            "programType": "HomeImprovement"
        },
        {
            "id": "218f0b73-1efb-4eab-b4bd-b1c500de9839",
            "name": "Test Program HIL22",
            "programType": "HomeImprovement"
        }
    ]
}

Response Data Element Details:

NameTypeDescription
pageSizeint32Number of items displayed on a page
pageOffsetint32Offset index indicating starting point for page items
totalPagesint32Total number of pages
totalItemCountint32Total count of items across all pages
itemsarray of objectsThe object contains the following data:
> idstringThe id of the Program
> namestring | nullThe name of the Program
> programTypestringOptions are: Other HomeImprovement

Error Handling:

Common errors will include:
400 – Bad Request
401 – Unauthorized
403 - Forbidden
404 – Not Found
422 – Unprocessable Content
500 – Internal Server Error

For guidance on troubleshooting error codes please consult the Error Code Handling section of this guide.


View Details for All Programs (without pagination)

Similar to the above request, a user has the ability to view the same level of details for all of their programs. This endpoint does not allow for pagination and provides a complete list of applications for all of time. To view these details, a user can initiate a GET request directed to the following endpoint:

https://cubi-sandbox-api.customersbank.com/consumerlending/v1/program/download

This request requires the additional data to be included in the query of the request.

Query Parameter Data Element Details:

NameTypeDescription
paginateResultsbooleanindicates whether the request should be paginated
pageint32indicates the page to return
perPageint32indicates how many items are on a page
sortOnstringindicates the attribute by which the data is sorted
sortAscendingstringindicates if the data is sorted in ascending or descending order

Example Request:

curl --request GET \
     --url 'https://cubi-sandbox-api.customersbank.com/consumerlending/v1/program/download?paginateResults=true&page=1&perPage=100' \
     --header 'accept: application/json'

A successful request will generate a response of 200 - Ok.

Example Response:

{
    "pageSize": 100,
    "pageOffset": 0,
    "totalPages": 1,
    "totalItemCount": 2,
    "items": [
        {
            "id": "a3cf82e1-14ff-477a-9459-b1bf010a1b8e",
            "name": "HIL",
            "programType": "HomeImprovement"
        },
        {
            "id": "218f0b73-1efb-4eab-b4bd-b1c500de9839",
            "name": "Test Program HIL22",
            "programType": "HomeImprovement"
        }
    ]
}

Response Data Element Details:

NameTypeDescription
idstringThe id of the Program
namestring | nullThe name of the Program
programTypestringOptions are: Other HomeImprovement

Error Handling:

Common errors will include:
400 – Bad Request
401 – Unauthorized
403 - Forbidden
404 – Not Found
422 – Unprocessable Content
500 – Internal Server Error

For guidance on troubleshooting error codes please consult the Error Code Handling section of this guide.