POST loan/RequestLoanForSTP

Request Information

URI Parameters

None.

Body Parameters

LoanRequest
NameDescriptionTypeAdditional information
request_id

string

None.

phone_number

string

None.

amount

string

None.

module_name

string

None.

transNumber

string

None.

origAmount

string

None.

origModule

string

None.

tenor

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "request_id": "sample string 1",
  "phone_number": "sample string 2",
  "amount": "sample string 3",
  "module_name": "sample string 4",
  "transNumber": "sample string 5",
  "origAmount": "sample string 6",
  "origModule": "sample string 7",
  "tenor": 8
}

application/xml, text/xml

Sample:
<LoanRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/sales_portal_common">
  <amount>sample string 3</amount>
  <module_name>sample string 4</module_name>
  <origAmount>sample string 6</origAmount>
  <origModule>sample string 7</origModule>
  <phone_number>sample string 2</phone_number>
  <request_id>sample string 1</request_id>
  <tenor>8</tenor>
  <transNumber>sample string 5</transNumber>
</LoanRequest>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'LoanRequest'.

Response Information

Resource Description

LoanResponse
NameDescriptionTypeAdditional information
loanref

string

None.

response_id

string

None.

request_id

string

None.

customer_id

string

None.

loan_accountnumber

string

None.

phone

string

None.

currency

string

None.

amount

string

None.

disbursement_date

date

None.

modulename

string

None.

IsThirdParty

string

None.

hasOptin

string

None.

IsAccessBankCustomer

boolean

None.

tenor

decimal number

None.

response_descr

string

None.

response_code

string

None.

full_description

string

None.

DisplayMessage

string

None.

Response Formats

application/json, text/json

Sample:
{
  "loanref": "sample string 1",
  "response_id": "sample string 2",
  "request_id": "sample string 3",
  "customer_id": "sample string 4",
  "loan_accountnumber": "sample string 5",
  "phone": "sample string 6",
  "currency": "sample string 7",
  "amount": "sample string 8",
  "disbursement_date": "2019-05-23T12:08:32.1518042+01:00",
  "modulename": "sample string 10",
  "IsThirdParty": "sample string 11",
  "hasOptin": "sample string 12",
  "IsAccessBankCustomer": true,
  "tenor": 1.0,
  "response_descr": "sample string 14",
  "response_code": "sample string 15",
  "full_description": "sample string 16",
  "DisplayMessage": "sample string 17"
}

application/xml, text/xml

Sample:
<LoanResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/sales_portal_common">
  <DisplayMessage>sample string 17</DisplayMessage>
  <full_description>sample string 16</full_description>
  <response_code>sample string 15</response_code>
  <response_descr>sample string 14</response_descr>
  <IsAccessBankCustomer>true</IsAccessBankCustomer>
  <IsThirdParty>sample string 11</IsThirdParty>
  <amount>sample string 8</amount>
  <currency>sample string 7</currency>
  <customer_id>sample string 4</customer_id>
  <disbursement_date>2019-05-23T12:08:32.1518042+01:00</disbursement_date>
  <hasOptin>sample string 12</hasOptin>
  <loan_accountnumber>sample string 5</loan_accountnumber>
  <loanref>sample string 1</loanref>
  <modulename>sample string 10</modulename>
  <phone>sample string 6</phone>
  <request_id>sample string 3</request_id>
  <response_id>sample string 2</response_id>
  <tenor>1</tenor>
</LoanResponse>