Get Loan Profiles

get

/bcws/webresources/v1.0/loans/loanProfiles

Gets the loan profiles that have been configured for the account with the specified ID.

Request

Query Parameters
  • The ID of the account to get loan profiles from. For example: 0.0.0.1+-account+123123
  • The name of the loan profile. For example: Resource Loan

There's no request body for this operation.

Back to Top

Response

Supported Media Types

200 Response

The loan profiles were returned successfully.
Body ()
Root Schema : schema
Type: array
Show Source
Nested Schema : loanProfileDetails
Type: object
Show Source
Nested Schema : LoanInfo
Type: object
The loan information.
Show Source
Nested Schema : locations
Type: array
Show Source
Nested Schema : Location
Type: object
Show Source

500 Response

An internal server error occurred.
Back to Top

Examples

This example shows how to get a loan configuration by name by submitting a GET request on the REST resource using cURL. For more information about cURL, see "Use cURL".

cURL Command

curl -X GET 'http://hostname:port/bcws/webresources/version/loans/loanProfiles?name=Loan Resource USD'

where:

  • hostname is the URL for the Billing Care REST server.
  • port is the port for the Billing Care REST server.
  • version is the version of the API you're using, such as v1.0.

Example of Response Body

This example shows the contents of the response body in JSON format.

[
  {
    "id": "0.0.0.1+-config-loan+56748",
    "name": "Loan Resource USD",
    "loanInfo": {
      "age": 0,
      "serviceFee": 10,
      "ageOffsetUnit": "Day",
      "minimum": 1,
      "maximum": 10000,
      "resourceId": 840,
      "maxQuantity": 5000,
      "taxCode": "",
      "loanTaxCode": "transfer",
      "percentFee": 0,
      "scaledMaximum": 0,
      "reasonId": 0,
      "reasonDomainId": 100,
      "locationMode": 0
    },
    "locations": [
      {
        "location": "IN"
      },
      {
        "location": "US"
      }
    ]
  }
]
Back to Top