Skip to content
On this page

Get Loan Schedules of a User

In order to get all of the loan schedules of a user, use the following endpoint.

MethodEnd Point URL
GEThttps://sandbox.tendopay.ph/api/payroll/v1/loan/{tp_company_id}/{tp_user_id}/{tp_transaction_id}/loan-schedules

Example

Example Request

bash
curl --location --request GET 'https://sandbox.tendopay.ph/api/payroll/v1/loan/123456/789043/1122333/loan-schedules'

Example Response

json
 {
          "schedule_id": 784663,
          "tp_user_id": 734100,
          "tp_transaction_id": 305728,
          "due_date": "2022-04-15",
          "amount": 780,
          "paid_amount": 0,
          "due_amount": 780,
          "status": "UNPAID",
          "created_at": "2022-03-15T10:56:25+08:00",
          "updated_at": "2022-03-15T10:56:25+08:00",
          "deleted_at": null
        },
        {
          "schedule_id": 784664,
          "tp_user_id": 734100,
          "tp_transaction_id": 305728,
          "due_date": "2022-04-30",
          "amount": 780,
          "paid_amount": 0,
          "due_amount": 780,
          "status": "UNPAID",
          "created_at": "2022-03-15T10:56:25+08:00",
          "updated_at": "2022-03-15T10:56:25+08:00",
          "deleted_at": null
        }
      ],
      "transaction_id": 305728,
      "user_id": 734100,
      "merchant_name": "Abshire's Shop",
      "total_amount_with_tendopay": 1560,
      "purchase_status": "PURCHASED"
    }
    ```