src/AvaTaxClient.php
/**
     * Lock a single transaction
     *
     * Lock a transaction uniquely identified by this URL. 
     * 
     * This API is mainly used for connector developer to simulate what happens when Returns product locks a document.
     * After this API call succeeds, the document will be locked and can't be voided or adjusted.
     * 
     * This API is only available to customers in Sandbox with AvaTaxPro subscription. On production servers, this API is available by invitation only.
     * 
     * A transaction represents a unique potentially taxable action that your company has recorded, and transactions include actions like
     * sales, purchases, inventory transfer, and returns (also called refunds).
     *
     * 
     * @param string $companyCode The company code of the company that recorded this transaction
     * @param string $transactionCode The transaction code to lock
     * @param LockTransactionModel $model The lock request you wish to execute
     * @return TransactionModel
     */
Lock a single transaction
Lock a transaction uniquely identified by this URL.

This API is mainly used for connector developer to simulate what happens when Returns product locks a document.
After this API call succeeds, the document will be locked and can't be voided or adjusted.

This API is only available to customers in Sandbox with AvaTaxPro subscription. On production servers, this API is available by invitation only.

A transaction represents a unique potentially taxable action that your company has recorded, and transactions include actions like
sales, purchases, inventory transfer, and returns (also called refunds).

@param string $companyCode The company code of the company that recorded this transaction
@param string $transactionCode The transaction code to lock
@param LockTransactionModel $model The lock request you wish to execute
@return TransactionModel
Lock a single transaction Lock a transaction uniquely identified by this URL . This API is mainly used for connector developer to simulate what happens when Returns product locks a document . After this API call succeeds the document will be locked and can ' t be voided or adjusted . This API is only available to customers in Sandbox with AvaTaxPro subscription . On production servers this API is available by invitation only . A transaction represents a unique potentially taxable action that your company has recorded and transactions include actions like sales purchases inventory transfer and returns ( also called refunds ) . @param string $companyCode The company code of the company that recorded this transaction @param string $transactionCode The transaction code to lock @param LockTransactionModel $model The lock request you wish to execute @return TransactionModel
public function lockTransaction($companyCode, $transactionCode, $model)
    {
        $path = "/api/v2/companies/{$companyCode}/transactions/{$transactionCode}/lock";
        $guzzleParams = [
            'query' => [],
            'body' => json_encode($model)
        ];
        return $this->restCall($path, 'POST', $guzzleParams);
    }
public function lockTransaction ( $ companyCode , $ transactionCode , $ model ) { $ path = " /api/v2/companies/ { $ companyCode } /transactions/ { $ transactionCode } /lock " ; $ guzzleParams = [ 'query' => [ ] , 'body' => json_encode ( $ model ) ] ; return $ this -> restCall ( $ path , 'POST' , $ guzzleParams ) ; }
Lock a single transaction
 Lock a transaction uniquely identified by this URL.
Lock a single transaction Lock a transaction uniquely identified by this URL .