Get Card Account Balance – Function 024
Get Card Account Balance also known as “Balance Inquiry” helps you find the balance on a given card. Both Available balance and Ledger balance are returned part of the response. The amount is returned with decimals implied. E.g.: Available balance of 4500 means $45.00.
Inputs | Description | Required | Data Type |
---|---|---|---|
FunctionID | 024 | Y | |
P1 | PAN OR ALT ID | Y | (6,19) numeric |
direct Fee | Populate this fee and AE will apply it as an adjustment – one-time fee applicable to this transaction | N | (0,6) numeric |
Outputs | Description | ||
P1 | Error Code | Y | |
P2 | Error Text | Y | |
P3 | Available Balance | Y | numeric |
P4 | Currency Code (ISO4217-Alpha) | Y | (3) varchar |
P5 | Ledger Balance | Y | numeric |
Example: Get Card Account Request
https://api.m2fin.com:8443//AuthENGINAPI/AuthENGINAPI?CID=5&CUSR=myuseraccount&CPWD=passwordassignedtome&FUNC=024&MSGID=00005539228226466&P1= PAN OR ALT ID
Example: Get Card Account Response
P1=000&P2=&P3=0000015000&P4=840&P5=0000015000
If the P1 is missing: P1=011&P2=Invalid Card Number.