You are here

public function Avatax::transactionsVoid in Drupal Commerce Connector for AvaTax 7.5

Void a transaction

Parameters

string $companyCode: The company code of the company that recorded these transactions.

string $transactionCode: The transaction code to void.

string[] $parameters: An associative array of POST body parameters that should contain the code (the reason for voiding or cancelling this transaction).

Return value

array

File

lib/Avatax.php, line 188
Defines a class for consuming the Avatax API.

Class

Avatax
Defines the Avatax class.

Code

public function transactionsVoid($companyCode, $transactionCode, $parameters) {
  return $this
    ->doRequest('POST', "companies/{$companyCode}/transactions/{$transactionCode}/void", $parameters);
}