public function duplicateToCreditInvoice()
    {
        $response = $this->connection()->patch($this->getEndpoint() . '/' . $this->id . '/duplicate_creditinvoice',
            json_encode([])	// No body needed for this call. The patch method however needs one.
        );

        return $this->makeFromResponse($response);
    }
public function duplicateToCreditInvoice()
    {
        $response = $this->connection()->patch($this->getEndpoint() . '/' . $this->id . '/duplicate_creditinvoice',
            json_encode([])	// No body needed for this call. The patch method however needs one.
        );

        return $this->makeFromResponse($response);
    }
public function duplicateToCreditInvoice ( ) { $ response = $ this -> connection ( ) -> patch ( $ this -> getEndpoint ( ) . '/' . $ this -> id . '/duplicate_creditinvoice' , json_encode ( [ ] ) // No body needed for this call. The patch method however needs one. ) ; return $ this -> makeFromResponse ( $ response ) ; }
Create a credit invoice based on the current invoice.

@return \Picqer\Financials\Moneybird\Entities\SalesInvoice

@throws \Picqer\Financials\Moneybird\Exceptions\ApiException
Create a credit invoice based on the current invoice .