public function Avatax::transactionsCommit in Drupal Commerce Connector for AvaTax 7.5
Commit a transaction for reporting.
Parameters
string $companyCode: The company code of the company that recorded these transactions.
string $transactionCode: The transaction code to commit.
Return value
array An associative array containing the id number of the transaction, the code, the companyId, date etc.
File
- lib/
Avatax.php, line 205 - Defines a class for consuming the Avatax API.
Class
- Avatax
- Defines the Avatax class.
Code
public function transactionsCommit($companyCode, $transactionCode) {
return $this
->doRequest('POST', "companies/{$companyCode}/transactions/{$transactionCode}/commit", array(
'commit' => TRUE,
));
}