You are here

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

Correct a previously created transaction.

Parameters

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

string $transactionCode: The transaction code to adjust.

string[] $parameters: An associative array of POST body parameters that should contain the adjustmentReason & adjustmentDescription.

Return value

array

File

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

Class

Avatax
Defines the Avatax class.

Code

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