#g4ppnvp_getAccountBalance

      *//////////////////////////////////////////////////////////////*
      * #g4ppnvp_getAccountBalance
      *                                                              *
      * Output:                                                      *
      *   out_amount - The amount for the account (array)            *
      *   out_curCode - The currency code for the amount (array)     *
      *   out_corrID - The correlation ID returned from the call     *
      *                                                              *
      * Returns:                                                     *
      *   -1 for error, n for the number of amounts returned.        *
      *                                                              *
      * Settable Variables ([r]=required)                            *
      *   account - PayPal Account ID [r]                            *
      *   return_all_currencies - Specify true to return all         *
      *     currencies or false to not return all currencies.        *
      *   reset - Reset Values After Call (*YES or *NO, Default *YES)*
      *   ccsid - The CCSID to use (1208)                            *
      *   debug - Turn on Debug (*NO, *YES)                          *
      *   debug_file - The debug file name.                          *
      *     (/tmp/g4pp_[account]_getAccountBalance)                  *
      *                                                              *
      *//////////////////////////////////////////////////////////////*
     D #g4ppnvp_getAccountBalance...
     D                 PR            10i 0
     D  out_amount                   13  2 DIM(MAXAMTS)
     D  out_curCode                 256    DIM(MAXAMTS)
     D  out_corrID                  256
     D  out_errMsg                  256    Options(*NOPASS)
      *--------------------------------------------------------------*

#g4ppnvp_getAccountBalance is used to retrieve the account balance.

Returns: n for the number of balances for success, -1 for error.

Required Parameters:

  • Balance Amount (output) - An array of balance amounts for the account.
  • Currency Code (output) - An array of currency codes for each balance amount.
  • Correlation ID - The correlation ID returned from the call.

Optional Parameters:

  • Error Message (output) - Error message

Settable Variables:

  • account - PayPal Account ID (required)
  • return_all_currencies - Specify true to return all the balance currencies for your account or false to return only your main currency balance. Defaults to false.
  • reset - Reset Values After Call (*YES or *NO, Default *YES)
  • ccsid - The CCSID to use (1208)
  • debug - Turn on Debug (*NO, *YES)
  • debug_file - The debug file name. (Default is /tmp/g4pp_[account]_getAccountBalance)