---
title: "Get account details"
method: POST
path: "/pty/account/v1/pws_get_account"
tags: ["Ledger API - Accounts"]
---

# Get account details

`POST /pty/account/v1/pws_get_account`

## Request

- Base URL: `https://api.uat.paymentology.com`
- URL: `https://api.uat.paymentology.com/pty/account/v1/pws_get_account`
- Auth: HTTP bearer

<ul>
<li class="docBullet">Ledger API version of the PWS <a href="https://developer.paymentology.com/bankinglive/reference/pws_get_account">Get Account Details</a> call. Request and response use the same format, served by the Ledger API.</li>
<li class="docBullet">The response returns <code>program_code</code> and <code>program_id</code> instead of the product fields.</li>
</ul>

## Request body

- LedgerGetAccountRequest
  - `ac_id` integer, required: account Number/Identifier.
  - `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`

Request processed. Check `header.error_id`: `0` means success. Any other value is a business error, reported with HTTP 200 and an empty `body`. Common codes: 992 (invalid account id), 993 (invalid card token), 995 (validation failed), 1043 (account does not belong to the client), 1055 (invalid program_code), 1531 (invalid customer id).

- LedgerGetAccountResponse
  - `header` LedgerApiHeader, required
    - `error_id` integer, required
    - `error_desc` string, required
  - `body` object, required
    - `ac_name` string: account name
    - `ac_ext_ref` string: account External Reference
    - `ac_desc` string: account Description
    - `ac_parent` integer: Parent account Id
    - `bill_ccy` string: Billing currency(Three digit ISO-4217 standard currency code . i.e.: 048 → BHD, 060 → BMD, 036 → AUD)
    - `set_ccy` string: Settlement currency(Three digit ISO-4217 standard currency code . i.e.: 048 → BHD, 060 → BMD, 036 → AUD)
    - `cre_dt` string: Created Date
    - `program_code` string: The program code associated with the account.
    - `program_id` integer: Deprecated. Use program_code instead. The program ID associated with the account.
    - `ac_status` integer: The status of the account: 0 = Pending 1 = Active 3 = Closed 99 = Suspended

## Other responses

- `400`: Request validation failed (missing or invalid fields, unknown fields, malformed JSON, or `client_id` not matching the access token). `header.error_id` is 400 and `header.error_desc` describes the failure.
- `401`: Missing or invalid access token. Empty body.
- `403`: Access token rejected by the API gateway (for example, expired).
- `413`: Request body too large. `header.error_id` is 413.
- `500`: Unexpected error. `header.error_id` is 900.

---

[API](https://skmtc.dev/paymentology/apis/ledger-api.md) - [All operations](https://skmtc.dev/paymentology/apis/ledger-api/llms.txt) - [OpenAPI document](https://skmtc.dev/paymentology/apis/ledger-api/revisions/a5700c501bee?raw)
