Ledger API - Accounts

Get account details

<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>
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

Request body

ac_idinteger required

account Number/Identifier.

api_call_unique_identifierstring required

Unique number that must be passed at each API request. Identifier to make each API request unique

client_idinteger required

Unique identifier for the client which Paymentology will provide at outset

user_idstring

User Id of the Customer who triggered the API request.

remarksstring

Remarks for API request

Example request

{
  "ac_id": 9876542,
  "api_call_unique_identifier": "438574845790657485",
  "client_id": 760131,
  "user_id": "string",
  "remarks": "string"
}

Response

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).

Example response

{
  "header": {
    "error_desc": "success"
  },
  "body": {
    "ac_name": "John Blogs",
    "ac_ext_ref": "EXT-001",
    "ac_desc": "Main account",
    "ac_parent": 542283189,
    "bill_ccy": "048",
    "set_ccy": "826",
    "cre_dt": "2020-08-30 11:12:15",
    "program_id": 100,
    "ac_status": 1
  }
}

Changes

No recorded changes to this operation across all 1 revision of this API.