v1

latestOpenAPI 3.1.02026-07-24233206489.1 KB
applications

Decide an Application by Lender

Handles the approval of an application by a lender

post/v1/capitals/lenders/applications/{application_id}/decide

Path parameters

application_idstring required

Application ID

Request body

approved_amountinteger
currencystring
decision'approved' | 'rejected'
remarkstring

Example request

{
  "approved_amount": 45000,
  "currency": "PHP"
}

Response

Application decided successfully

messagestring

Example response

{
  "data": {
    "approved_amount": 1000000,
    "created_at": "2024-01-01T00:00:00Z",
    "currency": "PHP",
    "id": "contract_123",
    "interest_fee": 250,
    "lender": {
      "code": "gotyme",
      "id": "lender_123"
    },
    "loans": [
      {
        "created_at": "2024-01-01T00:00:00Z",
        "id": "loan_123",
        "outstanding_dst_amount": 500,
        "outstanding_interest_amount": 15000,
        "outstanding_principal_amount": 300000,
        "principal_amount": 300000,
        "purpose": "Expand business inventory"
      }
    ],
    "remaining_amount": 400000,
    "repayment_rate": 1250,
    "status": "active",
    "term": 12
  }
}