Fetch Account

The fetch account function can be used to get and map the account identifier or its corresponding column values in the system to the input payload i.e. manipulate the service payload.

Account identifier can be retrieved for either the given PER_​ID_​NBR i.e. with reference to the defined relationship between person and account in Account Person Relationship table or ACCT_​NBR i.e. with reference to the relationship defined in the Maintains External Account Numbers table.

Other remaining field inputs are optional. Input fields with no mapping can have NULL value in the function.

Function:

FETCH(ACCT[COLUMN_NAME,PER_ID_NBR,ID_TYPE_CD,ACCT_REL_TYPE_CD,
ACCT_NBR,ACCT_NBR_TYPE_CD,DIVISION,ACCT_USAGE_FLG,PRIM_SW,SET_OPERATION])

Expected list of input field/column values:

Input Parameter Description
COLUMN_​NAME Column name to be mapped from the returned RESULTSET. i.e. OUTPUT field name.
PER_​ID_​NBR Person identification number.
ID_​TYPE_​CD Person identifier type.
ACCT_​REL_​TYPE_​CD Account relationship type.
ACCT_​NBR Account identifier.
ACCT_​NBR_​TYPE_​CD Account identifier type.
DIVISION Division.
ACCT_​USAGE_​FLG Account usage.
PRIM_​SW Primary ID switch.
SET_​OPERATION This is a BOOLEAN value.

If TRUE - Reset operation is configured at the service level.

If FALSE - Validates the fetch function output i.e. throws error if returns NULL or multiple records.

If NULL – Will respond with an error if any function returns multiple records.

List of output field/column values:

Output Parameter Description
ACCT_​ID Account ID.
CIS_​DIVISION Division of the account.
CURRENCY_​CD Currency code of the account
PER_​ID Person ID.
Note: Returned only when PER_​ID_​NBR is passed as the function input.
ID_​TYPE_​CD Person identifier type.
Note: Returned only when PER_​ID_​NBR is passed as the function input.
ACCT_​REL_​TYPE_​CD Account relationship type.
Note: Returned only when PER_​ID_​NBR is passed as the function input.
ACCT_​NBR_​TYPE_​CD Account identifier type.
ACCT_​USAGE_​FLG Account usage.
VERSION Version.