public function voidOrRefundInvoice($number, $id = null)
    {
        return new CheddarGetter_Response(
                                                                $this->request(
                                                                    '/invoices/void-or-refund/' . (($id) ? 'id/'.$id : 'number/'.$number),
                                                                    array('bogus' => 'make this a post')
                                                                    )
                                                                );
    }
public function voidOrRefundInvoice($number, $id = null)
    {
        return new CheddarGetter_Response(
                                                                $this->request(
                                                                    '/invoices/void-or-refund/' . (($id) ? 'id/'.$id : 'number/'.$number),
                                                                    array('bogus' => 'make this a post')
                                                                    )
                                                                );
    }
public function voidOrRefundInvoice ( $ number , $ id = null ) { return new CheddarGetter_Response ( $ this -> request ( '/invoices/void-or-refund/' . ( ( $ id ) ? 'id/' . $ id : 'number/' . $ number ) , array ( 'bogus' => 'make this a post' ) ) ) ; }
Void or refund invoice

Voiding and refunding can be a bit tricky.  Some billing solutions do not allow refunding while a transaction is "voidable". Transactions are usually voidable only for a short time (less than 24 hours). Some billing solutions do not allow voids. Check out the knowledge base article on the subject for more information: {@link http://support.cheddargetter.com/kb/operational-how-tos/credits-and-refunds-and-voids-oh-my}

@link https://cheddargetter.com/developers#void-or-refund
@link http://support.cheddargetter.com/kb/operational-how-tos/credits-and-refunds-and-voids-oh-my
@param string $number The unique number of the invoice to be voided/refunded generated by CheddarGetter.
@param string|null $id CG id of the invoice
@return CheddarGetter_Response
@throws CheddarGetter_Response_Exception
Void or refund invoice