Appearance
Get User Transactions
| Method | End Point URL |
|---|---|
| GET | https://sandbox.tendopay.ph/api/payroll/v1/loan/{tp_company_id}/{tp_user_id}?limit=1&last_loan_id= |
Parameters
| Name | Data Type | Description |
|---|---|---|
| limit | int | Number of data to fetch |
| last_loan_id | string | is to fetch data after the last_user_id passed (excluding current one) |
Example
Example Request
bash
curl --location --request GET 'https://sandbox.tendopay.ph/api/payroll/v1/loan/123456/789043'
Example Response
bash
{
"data": [
{
"tp_user_id": 734100,
"tp_company_id": 10110,
"ref_user_id": "test-user-0004",
"ref_company_id": "DEMO-123460",
"tp_loan_id": 305728,
"status": "PURCHASED",
"total_amount": 1560,
"refunded_amount": 0,
"paid_amount": 0,
"remain_amount": 0,
"closed_at": null,
"purchased_at": "2022-03-15T10:52:13+08:00",
"updated_at": "2022-03-15T10:52:18+08:00",
"loan_schedule": [
{
"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"
}
],
"meta": {
"has_more": false,
"last_loan_id": null
}
}