Skip to content
On this page

Get Transaction Information

Overview

The following endpoint can be used to get the transaction details of a user using the Transaction ID.

Request

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

Example

Example Request

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

Example Response

json
{
  "tp_user_id": 740127,
  "tp_company_id": 10112,
  "ref_user_id": "test-user-0004",
  "ref_company_id": "DEMO-123460",
  "tp_loan_id": 313677,
  "status": "PURCHASED",
  "total_amount": 1560,
  "refunded_amount": 0,
  "paid_amount": 0,
  "remain_amount": 0,
  "closed_at": null,
  "purchased_at": "2022-03-25T11:42:53+08:00",
  "updated_at": "2022-03-25T12:09:12+08:00",
  "loan_schedule": [
    {
      "schedule_id": 812590,
      "tp_user_id": 740127,
      "tp_transaction_id": 313677,
      "due_date": "2022-04-15",
      "amount": 780,
      "paid_amount": 0,
      "due_amount": 780,
      "status": "UNPAID",
      "created_at": "2022-03-25T12:12:19+08:00",
      "updated_at": "2022-03-25T12:12:19+08:00",
      "deleted_at": null
    },
    {
      "schedule_id": 812591,
      "tp_user_id": 740127,
      "tp_transaction_id": 313677,
      "due_date": "2022-04-30",
      "amount": 780,
      "paid_amount": 0,
      "due_amount": 780,
      "status": "UNPAID",
      "created_at": "2022-03-25T12:12:19+08:00",
      "updated_at": "2022-03-25T12:12:19+08:00",
      "deleted_at": null
    }
  ],
  "transaction_id": 313677,
  "user_id": 740127,
  "merchant_name": "Rolfson's Shop",
  "total_amount_with_tendopay": 1560,
  "purchase_status": "PURCHASED"
}