Skip to main content

Introduction

Overview

This document defines application endpoint specifications for integration with automated lending repayment system. It also defines data exchange between corporate pay and the lending repayment system.

SECURITY REQUIREMENT

The automated lending repayment system will utilizes OAuth2.0 and all Application endpoints are authenticated by default and therefore require that a service maintain a valid token for access to the resource server.

A raw json encoded text is sent in the body of a POST request to https://{base_url}/token to generate token while for token refresh, the url https://{base_url}/token/refresh is used.

AUTHORIZATION

Description: Authorise Application for Statistics service

ParameterTypeDescriptionRequired
username stringClient application’s usernameYes
password stringClient pin encrypted AES Encryption algorithm Yes
POST /auth
curl `${base_url}/auth`
-H "Content-type: application/json"
-d '{
"username": "app.username",
"password" : "app.password"
}
-X POST

REAUTHORIZATION

Description: Reauthorise Application for Statistics service

ParameterTypeDescriptionRequired
refresh_Token stringRefresh token received during the initial token generation or last refresh. Yes
POST /auth/refresh
curl `${base_url}/auth/refresh`
-H "Content-type: application/json"
-d '{
"refreshToken": "token"
}
-X POST