v1

latestOpenAPI 3.0.02026-07-242035712.0 MB
Account

Get Account List

<ul> <li class="docBullet">Allows for retrieval of a list of all child accounts of an account or list all account of provided customer id.</li> <li class="docBullet">A simple list of all child account id’s and their names, descriptions and billing currencies are returned.</li> <li class="docBullet">"ac_id" or "cu_id" any one of the parameter needs to be provided. If both fields are provided than "ac_id" will have precedence and response will return the details of account mentioned in "ac_id" and all accounts where "ac_id" is a parent account</li> </ul>
post/pws/pws_account_list/

Request body

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

cu_idinteger

Customer Id to list account of the provided customer.

cu_refstring

Customer Reference

ac_idinteger

Parent account number

Conditional : If any other parameter values are passed, ac_id is optional. Otherwise ac_id is mandatory

ac_ext_refstring

Account external reference

Example request

{
  "api_call_unique_identifier": "438574845790657485",
  "client_id": 760131,
  "cu_id": 5838689,
  "ac_id": 542283189,
  "ac_ext_ref": "O"
}

Response

Successful Response

Example response

{
  "header": {
    "error_desc": "success"
  },
  "body": [
    {
      "ac_id": 732021388,
      "ac_name": "Akhsay Patel",
      "ac_parent": 122222,
      "client_id": 123456,
      "bill_ccy": "826",
      "bal_blk_amt": 100,
      "crd_prdct_id": 2,
      "bal_act_amt": 10000,
      "cre_dt": "2019-12-03T08:03:12Z"
    }
  ]
}