---
title: "Get Account Last Payment"
method: POST
path: "/pws/pws_get_account_last_payment/"
tags: ["Credit account status"]
---

# Get Account Last Payment

`POST /pws/pws_get_account_last_payment/`

## Request

- Base URL: `https://api.uat.paymentology.com/ppws/api`
- URL: `https://api.uat.paymentology.com/ppws/api/pws/pws_get_account_last_payment/`
- Auth: none declared

This web service provides the details of the last payment received for that account

## Request body

- GetAccountLastPaymentDetails
  - `api_call_unique_identifier` string, required: Unique number that must be passed at each API request. Identifier to make each API request unique
  - `client_id` integer, required: Unique identifier for the client which Paymentology will provide at outset
  - `user_id` string: User Id of the Customer who triggered the API request.
  - `remarks` string: Remarks for API request

## Response `200`

Successful Response

- GetLastPaymentResponse
  - `header` ModelResponseHeader
    - `error_id` integer: error id
    - `error_desc` string: error message
  - `body` GetLastPaymentResponseDto
    - `acc_id` integer: Account Id
    - `payment_amt` number: Last Payment Amount
    - `unallocated_amt` number: Unallocated Amount
    - `payment_received_date` string: Last Payment Received Date
    - `payment_details` PaymentDetailsDto[]: Payment Details which shows how much amount is distributed to which balance type
      - `balance_amt_type` 'FEE, TXN, INS, INT': Transaction Activities Type
      - `fee_id` integer: Unique Id that represent the payment is distributed to particular fee </br> <ul><li>When fee_id>0 then, payment is distributed to fee.</li><li>When fee_id=-1 then, payment is not distributed to fee, that means it may be distributed to other transaction or installment or interest </li> </ul>
      - `txn_rid` integer: Unique Id that represent the payment is distributed to particular transaction with provided rid </br> <ul><li>When txn_rid>0 and fee_id>0 then, payment is distributed to fee that was charged for the transaction.</li> <li>When txn_rid=-1 and fee_id>0 then, payment is distributed to other than transaction fee.</li><li>When txn_rid>0 and fee_id=-1 then, payment is distributed to transaction indicated by balance_amt_type as 'TXN' and can be distributed to its interest indicated by balance_amt_type as 'INT'.</li> </ul>
      - `amt_covered` number: Payment Amount that covers the particular fee or txnrid of that balance_amt_type

## Other responses

- `404`: Webservices does not exist
- `500`: Internal Server error

## Changes

- **2026-11-03** `73c2771493b1`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/paymentology/apis/payapi-docs/changes/pws/pws_get_account_last_payment/post.md)

---

[API](https://skmtc.dev/paymentology/apis/payapi-docs.md) - [All operations](https://skmtc.dev/paymentology/apis/payapi-docs/llms.txt) - [OpenAPI document](https://skmtc.dev/paymentology/apis/payapi-docs/revisions/73c2771493b1?raw)
