#g4ppinv_markInvoiceAsRefunded

 *//////////////////////////////////////////////////////////////*
 * #g4ppinv_markInvoiceAsRefunded - Mark Invoice as Refunded    *
 *                                                              *
 * Output:                                                      *
 *   out_errMsg - The error message (if error exists).          *
 *                                                              *
 * Returns:                                                     *
 *   -1 for error, 0 for no error.                              *
 *                                                              *
 * Settable Variables ([r]=required)                            *
 *   account - PayPal Account ID [r]                            *
 *   number - Invoice Number. [r]                               *
 *   refund_date_tz - Refund Date Timezone (Default GMT)        *
 *   refund_date - Refund Date (YYYYMMDD)                       *
 *   refund_time - Refund Time (HHMMSS)                         *
 *   note - Refund Note                                         *
 *   refund_currency_code - Refund Currency Code (Default USD)  *
 *   refund_value - Refund Amount                               *
 *   temporary_directory - Temporary directory to use for work  *
 *     files.  Default /tmp.                                    *
 *   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]_markInvoiceAsPaid)                  *
 *                                                              *
 *//////////////////////////////////////////////////////////////*
D #g4ppinv_markInvoiceAsRefunded...
D                 PR            10i 0
D  out_errMsg                  256    Options(*NOPASS)

#g4ppinv_markInvoiceAsRefunded is used to mark an invoice with a status of refunded.

Optional Parameters:

  • Error Message (output) - Error message

Settable Variables:

  • account - PayPal Account ID (required)
  • number - Invoice Number (required)
  • refund_date_tz - Refund Date Timezone
  • refund_date - Refund Date (YYYYMMDD)
  • refund_time - Refund Time (HHMMSS)
  • note - Refund Note
  • refund_currency_code - Refund Currency Code
  • refund_value - Refund Amount
  • temporary_directory - Temporary directory to use for work files. Default /tmp.
  • reset - Reset Values After Call (*YES or *NO, Default *YES)
  • ccsid - The CCSID to use (1208)
  • debug - Turn on Debug (*NO, *YES, default *NO)
  • debug_file - The debug file name (default /tmp/g4pp_[account]_markInvoiceAsRefunded)